toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (contactId != null) {
json[r'ContactId'] = contactId;
}
if (entityAssetModelId != null) {
json[r'EntityAssetModelId'] = entityAssetModelId;
}
if (entityId != null) {
json[r'EntityId'] = entityId;
}
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 (entityExternalIdentifier != null) {
json[r'EntityExternalIdentifier'] = entityExternalIdentifier;
}
if (entityName != null) {
json[r'EntityName'] = entityName;
}
if (entityDescription != null) {
json[r'EntityDescription'] = entityDescription;
}
if (entity != null) {
json[r'Entity'] = entity;
}
return json;
}