I had saved a variables name and value to a JSON file in Dart. Later I extracted the name and value from that JSON file and now am trying to create a new variable with that name. Something like this:
var variableName= "firstName";
String variableName = "Joe";
so that:
String firstName = "Joe";
Is there a way to do this?