Skip to content

Instantly share code, notes, and snippets.

@zoechi
Created May 2, 2018 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoechi/bca589c77b74a3290ab1ef3e246cf384 to your computer and use it in GitHub Desktop.
Save zoechi/bca589c77b74a3290ab1ef3e246cf384 to your computer and use it in GitHub Desktop.
import 'dart:convert';
void main() {
try {
var resBody = {};
resBody["email"] = "employerA@gmail.com";
resBody["password"] = "admin123";
var user = {};
user["user"] = resBody;
String str = JSON.encode(user);
print(str);
} catch(e) {
print(e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment