toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (entities != null) {
json[r'Entities'] = entities;
}
if (documents != null) {
json[r'Documents'] = documents;
}
if (documentEntities != null) {
json[r'DocumentEntities'] = documentEntities;
}
if (issues != null) {
json[r'Issues'] = issues;
}
if (contacts != null) {
json[r'Contacts'] = contacts;
}
if (createdBy != null) {
json[r'CreatedBy'] = createdBy;
}
if (modifiedBy != null) {
json[r'ModifiedBy'] = modifiedBy;
}
if (attributes != null) {
json[r'Attributes'] = attributes;
}
if (footprint != null) {
json[r'Footprint'] = footprint;
}
if (mappedFrom != null) {
json[r'MappedFrom'] = mappedFrom;
}
if (mappedTo != null) {
json[r'MappedTo'] = mappedTo;
}
if (ifcType != null) {
json[r'IfcType'] = ifcType;
}
if (dynamicProperties != null) {
json[r'DynamicProperties'] = dynamicProperties;
}
if (assetModelId != null) {
json[r'AssetModelId'] = assetModelId;
}
if (entityId != null) {
json[r'EntityId'] = entityId;
}
if (name != null) {
json[r'Name'] = name;
}
if (description != null) {
json[r'Description'] = description;
}
if (externalIdentifier != null) {
json[r'ExternalIdentifier'] = externalIdentifier;
}
if (externalObjectType != null) {
json[r'ExternalObjectType'] = externalObjectType;
}
if (externalObjectName != null) {
json[r'ExternalObjectName'] = externalObjectName;
}
if (model != null) {
json[r'Model'] = model;
}
if (modelName != null) {
json[r'ModelName'] = modelName;
}
if (dateCreated != null) {
json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
}
if (dateModified != null) {
json[r'DateModified'] = dateModified.toUtc().toIso8601String();
}
return json;
}