user_info.dart 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. class UserInfo {
  2. String? msg;
  3. int? code;
  4. Data? data;
  5. UserInfo({this.msg, this.code, this.data});
  6. UserInfo.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? id;
  23. int? isDel;
  24. String? createDate;
  25. String? createUser;
  26. String? updateDate;
  27. String? updateUser;
  28. String? tenantId;
  29. String? phoneNumber;
  30. Null? password;
  31. String? identificationCard;
  32. String? avatar;
  33. Data(
  34. {this.id,
  35. this.isDel,
  36. this.createDate,
  37. this.createUser,
  38. this.updateDate,
  39. this.updateUser,
  40. this.tenantId,
  41. this.phoneNumber,
  42. this.password,
  43. this.identificationCard,
  44. this.avatar});
  45. Data.fromJson(Map<String, dynamic> json) {
  46. id = json['id'];
  47. isDel = json['isDel'];
  48. createDate = json['createDate'];
  49. createUser = json['createUser'];
  50. updateDate = json['updateDate'];
  51. updateUser = json['updateUser'];
  52. tenantId = json['tenantId'];
  53. phoneNumber = json['phoneNumber'];
  54. password = json['password'];
  55. identificationCard = json['identificationCard'];
  56. avatar = json['avatar'];
  57. }
  58. Map<String, dynamic> toJson() {
  59. final Map<String, dynamic> data = new Map<String, dynamic>();
  60. data['id'] = this.id;
  61. data['isDel'] = this.isDel;
  62. data['createDate'] = this.createDate;
  63. data['createUser'] = this.createUser;
  64. data['updateDate'] = this.updateDate;
  65. data['updateUser'] = this.updateUser;
  66. data['tenantId'] = this.tenantId;
  67. data['phoneNumber'] = this.phoneNumber;
  68. data['password'] = this.password;
  69. data['identificationCard'] = this.identificationCard;
  70. data['avatar'] = this.avatar;
  71. return data;
  72. }
  73. }