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.
41 lines
705 B
41 lines
705 B
4 years ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
/// address : ""
|
||
|
/// area : ""
|
||
|
/// city : ""
|
||
|
/// cityInfo : ""
|
||
|
/// id : 0
|
||
|
/// isDefault : true
|
||
|
/// latitude : 0
|
||
|
/// longitude : 0
|
||
|
/// mid : 0
|
||
|
/// phone : ""
|
||
|
/// province : ""
|
||
|
/// tag : ""
|
||
|
/// username : ""
|
||
|
|
||
|
part 'address.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class Address {
|
||
|
Address();
|
||
|
|
||
|
String address;
|
||
|
String area;
|
||
|
String city;
|
||
|
String cityInfo;
|
||
|
String id;
|
||
|
bool isDefault;
|
||
|
String latitude;
|
||
|
String longitude;
|
||
|
String mid;
|
||
|
String phone;
|
||
|
String province;
|
||
|
String tag;
|
||
|
String username;
|
||
|
|
||
|
factory Address.fromJson(Map<String, dynamic> json) =>
|
||
|
_$AddressFromJson(json);
|
||
|
Map<String, dynamic> toJson() => _$AddressToJson(this);
|
||
|
}
|