12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import 'package:json_annotation/json_annotation.dart';
- part 'patient_info.g.dart';
- ///咨询人信息
- @JsonSerializable()
- class PatientInfo {
- ///ID
- @JsonKey(name: "appUserPatientsId")
- final String? appUserPatientsId;
- ///关系
- @JsonKey(name: "relationship")
- final String? relationship;
- ///咨询人名称
- @JsonKey(name: "patientName")
- final String? patientName;
- ///名字图片,base64编码
- @JsonKey(name: "patientNamePic")
- final String? patientNamePic;
- ///身份证
- @JsonKey(name: "identificationCard")
- final String? identificationCard;
- ///性别
- @JsonKey(name: "sex")
- final int? sex;
- ///年龄
- @JsonKey(name: "age")
- final int? age;
- ///是否默认
- @JsonKey(name: "isDefault")
- final int? isDefault;
- PatientInfo({
- this.appUserPatientsId,
- this.relationship,
- this.patientName,
- this.patientNamePic,
- this.identificationCard,
- this.sex,
- this.age,
- this.isDefault,
- });
- factory PatientInfo.fromJson(Map<String, dynamic> json) {
- return _$PatientInfoFromJson(json);
- }
- Map<String, dynamic> toJson() {
- return _$PatientInfoToJson(this);
- }
- }
|