toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['entityId'] = this.entityId;
data['parentId'] = this.parentId;
data['firstName'] = this.firstName;
data['lastName'] = this.lastName;
data['emailId'] = this.emailId;
data['mobileNumber'] = this.mobileNumber;
data['customerNumber'] = this.customerNumber;
data['levelId'] = this.levelId;
data['levelName'] = this.levelName;
data['commercialChannelId'] = this.commercialChannelId;
data['commercialChannelName'] = this.commercialChannelName;
data['customerCode'] = this.customerCode;
if (this.fields != null) {
data['fields'] = this.fields!.map((v) => v.toJson()).toList();
}
if (this.profileGroup != null) {
data['profileGroup'] = this.profileGroup!.toJson();
}
data['displayName'] = this.displayName;
data['salesForce'] = this.salesForce;
data['status'] = this.status;
if (this.address != null) {
data['address'] = this.address!.toJson();
}
data['partnerType'] = this.partnerType;
data['partnerName'] = this.partnerName;
return data;
}