You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
482 B

class Address {
final int? id;
final String streetName;
final String comments;
Address({
this.id,
required this.streetName,
required this.comments,
});
factory Address.fromMap(Map<String, dynamic> json) => Address(
id: json["id"],
streetName: json["street_name"],
comments: json["comments"],
);
Map<String, dynamic> toMap() => {
"id": id,
"street_name": streetName,
"comments": comments,
};
}