import 'package:json_annotation/json_annotation.dart'; part 'address.g.dart'; @JsonSerializable(explicitToJson: true) class Address { Address(); @JsonKey(name: "address") String? addressStr; String? area; String? city; String? cityInfo; String? id; bool? isDefault; dynamic latitude; dynamic longitude; String? mid; String? phone; String? province; String? tag; String? username; factory Address.fromJson(Map json) => _$AddressFromJson(json); Map toJson() => _$AddressToJson(this); }