patient_info.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'patient_info.g.dart';
  3. ///咨询人信息
  4. @JsonSerializable()
  5. class PatientInfo {
  6. ///ID
  7. @JsonKey(name: "appUserPatientsId")
  8. final String? appUserPatientsId;
  9. ///关系
  10. @JsonKey(name: "relationship")
  11. final String? relationship;
  12. ///咨询人名称
  13. @JsonKey(name: "patientName")
  14. final String? patientName;
  15. ///名字图片,base64编码
  16. @JsonKey(name: "patientNamePic")
  17. final String? patientNamePic;
  18. ///身份证
  19. @JsonKey(name: "identificationCard")
  20. final String? identificationCard;
  21. ///性别
  22. @JsonKey(name: "sex")
  23. final int? sex;
  24. ///年龄
  25. @JsonKey(name: "age")
  26. final int? age;
  27. ///是否默认
  28. @JsonKey(name: "isDefault")
  29. final int? isDefault;
  30. PatientInfo({
  31. this.appUserPatientsId,
  32. this.relationship,
  33. this.patientName,
  34. this.patientNamePic,
  35. this.identificationCard,
  36. this.sex,
  37. this.age,
  38. this.isDefault,
  39. });
  40. factory PatientInfo.fromJson(Map<String, dynamic> json) {
  41. return _$PatientInfoFromJson(json);
  42. }
  43. Map<String, dynamic> toJson() {
  44. return _$PatientInfoToJson(this);
  45. }
  46. }