Created
May 2, 2018 08:01
-
-
Save zoechi/bca589c77b74a3290ab1ef3e246cf384 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
void main() { | |
try { | |
var resBody = {}; | |
resBody["email"] = "[email protected]"; | |
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