1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- class UserListEntity {
- String? msg;
- int? code;
- List<Data>? data;
- UserListEntity({this.msg, this.code, this.data});
- UserListEntity.fromJson(Map<String, dynamic> json) {
- msg = json['msg'];
- code = json['code'];
- if (json['data'] != null) {
- data = <Data>[];
- json['data'].forEach((v) {
- data!.add(new Data.fromJson(v));
- });
- }
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['msg'] = this.msg;
- data['code'] = this.code;
- if (this.data != null) {
- data['data'] = this.data!.map((v) => v.toJson()).toList();
- }
- return data;
- }
- }
- class Data {
- String? patientId;
- String? userRelationship;
- String? patientName;
- String? identificationCard;
- int? documentType;
- String? allergyHistory;
- String? pastHistory;
- String? familyHistory;
- String? patientPhone;
- String? homeAddress;
- int? isDefault;
- Data(
- {this.patientId,
- this.userRelationship,
- this.patientName,
- this.identificationCard,
- this.documentType,
- this.allergyHistory,
- this.pastHistory,
- this.familyHistory,
- this.patientPhone,
- this.homeAddress,
- this.isDefault});
- Data.fromJson(Map<String, dynamic> json) {
- patientId = json['patientId'];
- userRelationship = json['userRelationship'];
- patientName = json['patientName'];
- identificationCard = json['identificationCard'];
- documentType = json['documentType'];
- allergyHistory = json['allergyHistory'];
- pastHistory = json['pastHistory'];
- familyHistory = json['familyHistory'];
- patientPhone = json['patientPhone'];
- homeAddress = json['homeAddress'];
- isDefault = json['isDefault'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['patientId'] = this.patientId;
- data['userRelationship'] = this.userRelationship;
- data['patientName'] = this.patientName;
- data['identificationCard'] = this.identificationCard;
- data['documentType'] = this.documentType;
- data['allergyHistory'] = this.allergyHistory;
- data['pastHistory'] = this.pastHistory;
- data['familyHistory'] = this.familyHistory;
- data['patientPhone'] = this.patientPhone;
- data['homeAddress'] = this.homeAddress;
- data['isDefault'] = this.isDefault;
- return data;
- }
- }
|