Created
December 28, 2021 03:43
-
-
Save tetujin/c754e6c736020a8437702daa4ad5e1b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
var mapObj = {"title":"TODO-1", "status":true}; | |
print(mapObj); | |
var jsonStr = jsonEncode(mapObj); | |
print(jsonStr); | |
var mapObj2 = jsonDecode(jsonStr); | |
print(mapObj2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment