synchronize_data.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. class SynchronizeData {
  2. String? msg;
  3. int? code;
  4. Data? data;
  5. SynchronizeData({this.msg, this.code, this.data});
  6. SynchronizeData.fromJson(Map<String, dynamic> json) {
  7. msg = json['msg'];
  8. code = json['code'];
  9. data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  10. }
  11. Map<String, dynamic> toJson() {
  12. final Map<String, dynamic> data = new Map<String, dynamic>();
  13. data['msg'] = this.msg;
  14. data['code'] = this.code;
  15. if (this.data != null) {
  16. data['data'] = this.data!.toJson();
  17. }
  18. return data;
  19. }
  20. }
  21. class Data {
  22. String? phoneNumber;
  23. String? identificationCard;
  24. String? id;
  25. String? token;
  26. Data({this.phoneNumber, this.identificationCard, this.id, this.token});
  27. Data.fromJson(Map<String, dynamic> json) {
  28. phoneNumber = json['phoneNumber'];
  29. identificationCard = json['identificationCard'];
  30. id = json['id'];
  31. token = json['token'];
  32. }
  33. Map<String, dynamic> toJson() {
  34. final Map<String, dynamic> data = new Map<String, dynamic>();
  35. data['phoneNumber'] = this.phoneNumber;
  36. data['identificationCard'] = this.identificationCard;
  37. data['id'] = this.id;
  38. data['token'] = this.token;
  39. return data;
  40. }
  41. }