title: Dynamically setting variable name in Dart
body: <p>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:</p>
  
  <pre><code>var variableName= "firstName";
  String variableName = "Joe";
  </code></pre>
  
  <p>so that:</p>
  
  <pre><code>String firstName = "Joe";
  </code></pre>
  
  <p>Is there a way to do this?</p>