// To parse this JSON data, do // // final address = addressFromJson(jsonString); import 'dart:convert'; Address addressFromJson(String str) => Address.fromJson(json.decode(str)); String addressToJson(Address data) => json.encode(data.toJson()); class Address { String streetName; String comments; Address({ required this.streetName, required this.comments, }); factory Address.fromJson(Map json) => Address( streetName: json["street_name"], comments: json["comments"], ); Map toJson() => { "street_name": streetName, "comments": comments, }; }