You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm-flutter-app/lib/models/get_employee_contacts.model...

45 lines
1.4 KiB
Dart

class GetEmployeeContactsList {
String? cONTACTNAME;
int? cONTACTPERSONID;
int? cONTACTRELATIONSHIPID;
String? cONTACTTYPE;
String? dATEOFBIRTH;
int? pERSONID;
String? pRIMARYCONTACTFLAG;
String? rELATIONSHIP;
GetEmployeeContactsList(
{this.cONTACTNAME,
this.cONTACTPERSONID,
this.cONTACTRELATIONSHIPID,
this.cONTACTTYPE,
this.dATEOFBIRTH,
this.pERSONID,
this.pRIMARYCONTACTFLAG,
this.rELATIONSHIP});
GetEmployeeContactsList.fromJson(Map<String, dynamic> json) {
cONTACTNAME = json['CONTACT_NAME'];
cONTACTPERSONID = json['CONTACT_PERSON_ID'];
cONTACTRELATIONSHIPID = json['CONTACT_RELATIONSHIP_ID'];
cONTACTTYPE = json['CONTACT_TYPE'];
dATEOFBIRTH = json['DATE_OF_BIRTH'];
pERSONID = json['PERSON_ID'];
pRIMARYCONTACTFLAG = json['PRIMARY_CONTACT_FLAG'];
rELATIONSHIP = json['RELATIONSHIP'];
}
Map<String, dynamic> toJson() {
Map<String, dynamic> data = new Map<String, dynamic>();
data['CONTACT_NAME'] = this.cONTACTNAME;
data['CONTACT_PERSON_ID'] = this.cONTACTPERSONID;
data['CONTACT_RELATIONSHIP_ID'] = this.cONTACTRELATIONSHIPID;
data['CONTACT_TYPE'] = this.cONTACTTYPE;
data['DATE_OF_BIRTH'] = this.dATEOFBIRTH;
data['PERSON_ID'] = this.pERSONID;
data['PRIMARY_CONTACT_FLAG'] = this.pRIMARYCONTACTFLAG;
data['RELATIONSHIP'] = this.rELATIONSHIP;
return data;
}
}