Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json to list flutter

List<UserModel> users = (json.decode(response.body) as List)
      .map((data) => UserModel.fromJson(data))
      .toList();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #list #flutter
ADD COMMENT
Topic
Name
8+3 =