toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (mappingId != null) {
json[r'MappingId'] = mappingId;
}
if (sourceAssetModelId != null) {
json[r'SourceAssetModelId'] = sourceAssetModelId;
}
if (targetAssetModelId != null) {
json[r'TargetAssetModelId'] = targetAssetModelId;
}
if (createdByAssetModelId != null) {
json[r'CreatedByAssetModelId'] = createdByAssetModelId;
}
if (createdByContactId != null) {
json[r'CreatedByContactId'] = createdByContactId;
}
if (createdBy != null) {
json[r'CreatedBy'] = createdBy;
}
if (sourceAssetModel != null) {
json[r'SourceAssetModel'] = sourceAssetModel;
}
if (targetAssetModel != null) {
json[r'TargetAssetModel'] = targetAssetModel;
}
if (dateCreated != null) {
json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
}
if (hasFootprints != null) {
json[r'HasFootprints'] = hasFootprints;
}
if (footPrintsAreAligned != null) {
json[r'FootPrintsAreAligned'] = footPrintsAreAligned;
}
if (lostEntities != null) {
json[r'LostEntities'] = lostEntities;
}
if (foundEntities != null) {
json[r'FoundEntities'] = foundEntities;
}
if (mappedEntities != null) {
json[r'MappedEntities'] = mappedEntities;
}
if (candidateMatches != null) {
json[r'CandidateMatches'] = candidateMatches;
}
if (messages != null) {
json[r'Messages'] = messages;
}
return json;
}