toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (entities != null) {
json[r'Entities'] = entities;
}
if (asset != null) {
json[r'Asset'] = asset;
}
if (segment != null) {
json[r'Segment'] = segment;
}
if (attributeDefinitions != null) {
json[r'AttributeDefinitions'] = attributeDefinitions;
}
if (spaces != null) {
json[r'Spaces'] = spaces;
}
if (components != null) {
json[r'Components'] = components;
}
if (componentTypes != null) {
json[r'ComponentTypes'] = componentTypes;
}
if (levels != null) {
json[r'Levels'] = levels;
}
if (zones != null) {
json[r'Zones'] = zones;
}
if (facilities != null) {
json[r'Facilities'] = facilities;
}
if (documents != null) {
json[r'Documents'] = documents;
}
if (contacts != null) {
json[r'Contacts'] = contacts;
}
if (sites != null) {
json[r'Sites'] = sites;
}
if (applications != null) {
json[r'Applications'] = applications;
}
if (forwardMappings != null) {
json[r'ForwardMappings'] = forwardMappings;
}
if (reverseMappings != null) {
json[r'ReverseMappings'] = reverseMappings;
}
if (roles != null) {
json[r'Roles'] = roles;
}
if (permissions != null) {
json[r'Permissions'] = permissions;
}
if (state != null) {
json[r'State'] = state;
}
if (assetModelId != null) {
json[r'AssetModelId'] = assetModelId;
}
if (assetId != null) {
json[r'AssetId'] = assetId;
}
if (name != null) {
json[r'Name'] = name;
}
if (revision != null) {
json[r'Revision'] = revision;
}
if (status != null) {
json[r'Status'] = status;
}
if (isCurrent != null) {
json[r'IsCurrent'] = isCurrent;
}
if (uploadedById != null) {
json[r'UploadedById'] = uploadedById;
}
if (segmentName != null) {
json[r'SegmentName'] = segmentName;
}
if (segmentId != null) {
json[r'SegmentId'] = segmentId;
}
if (assetName != null) {
json[r'AssetName'] = assetName;
}
if (modelPath != null) {
json[r'ModelPath'] = modelPath;
}
if (modelSize != null) {
json[r'ModelSize'] = modelSize;
}
if (oneMeter != null) {
json[r'OneMeter'] = oneMeter;
}
if (originalAuthorId != null) {
json[r'OriginalAuthorId'] = originalAuthorId;
}
if (dateUploaded != null) {
json[r'DateUploaded'] = dateUploaded.toUtc().toIso8601String();
}
if (dateProcessed != null) {
json[r'DateProcessed'] = dateProcessed.toUtc().toIso8601String();
}
if (lastEntityId != null) {
json[r'LastEntityId'] = lastEntityId;
}
if (processingStage != null) {
json[r'ProcessingStage'] = processingStage;
}
if (processingStatus != null) {
json[r'ProcessingStatus'] = processingStatus;
}
return json;
}