toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (entityId != null) {
json[r'EntityId'] = entityId;
}
if (contactAssetModelId != null) {
json[r'ContactAssetModelId'] = contactAssetModelId;
}
if (contactId != null) {
json[r'ContactId'] = contactId;
}
if (dateCreated != null) {
json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
}
if (dateModified != null) {
json[r'DateModified'] = dateModified.toUtc().toIso8601String();
}
if (role != null) {
json[r'Role'] = role;
}
if (contactExternalIdentifier != null) {
json[r'ContactExternalIdentifier'] = contactExternalIdentifier;
}
if (contactName != null) {
json[r'ContactName'] = contactName;
}
if (contactDescription != null) {
json[r'ContactDescription'] = contactDescription;
}
if (contact != null) {
json[r'Contact'] = contact;
}
return json;
}