address.dart 511 B

123456789101112131415161718192021222324
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'address.g.dart';
  3. @JsonSerializable()
  4. class Address {
  5. Address();
  6. num id;
  7. String real_name;
  8. String phone;
  9. String province;
  10. String city;
  11. num city_id;
  12. String district;
  13. String detail;
  14. num post_code;
  15. String longitude;
  16. String latitude;
  17. num is_default;
  18. factory Address.fromJson(Map<String,dynamic> json) => _$AddressFromJson(json);
  19. Map<String, dynamic> toJson() => _$AddressToJson(this);
  20. }