title: Dart json.encode returns json string with key values without quotes
body: <p>I am trying to convert a dictionary to json string. However I am not getting quotes around any of the strings. I am using dart 2 . Here is what I have</p>
  
  <pre><code>  var resBody = {};
    resBody["email"] = "employerA@gmail.com";
    resBody["password"] = "admin123";
    var user = {};
    user["user"] = resBody;
    String str = json.encode(user);
  </code></pre>
  
  <p>Output is:</p>
  
  <pre><code>{user: {email: employerA@gmail.com, password: admin123}}
  </code></pre>
  
  <p>I would like this to be like an actual json object</p>
  
  <pre><code>{"user": {"email": "employerA@gmail.com", "password: admin123"}}
  </code></pre>
  
  <p>How can I tell dart to put quotes around it ?
  I looked at <a href="https://stackoverflow.com/questions/29294019/dart-convert-map-to-json-with-all-elements-quoted">this</a> thread and am doing exactly what works for the user
  Am I doing something wrong ?</p>