toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.firstName != null) {
json[r'firstName'] = this.firstName;
} else {
json[r'firstName'] = null;
}
if (this.lastName != null) {
json[r'lastName'] = this.lastName;
} else {
json[r'lastName'] = null;
}
if (this.primaryPhone != null) {
json[r'primaryPhone'] = this.primaryPhone;
} else {
json[r'primaryPhone'] = null;
}
if (this.relationType != null) {
json[r'relationType'] = this.relationType;
} else {
json[r'relationType'] = null;
}
return json;
}