Answers for "json to flutter map"

-1

dart map to json string

import 'dart:convert';
...
json.encode(data); // JSON.encode(data) in Dart 1.x
Posted by: Guest on October-09-2020
0

json to list flutter

List<UserModel> users = (json.decode(response.body) as List)
      .map((data) => UserModel.fromJson(data))
      .toList();
Posted by: Guest on July-28-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language