Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json to string dart

import 'dart:convert';
main() {
  String objText = '{"name": "bezkoder", "age": 30}';
  User user = User.fromJson(jsonDecode(objText));
  print(user);
Source by www.bezkoder.com #
 
PREVIOUS NEXT
Tagged: #json #string #dart
ADD COMMENT
Topic
Name
4+6 =