toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (componentTypeId != null) {
    json[r'ComponentTypeId'] = componentTypeId;
  }
  if (componentTypeName != null) {
    json[r'ComponentTypeName'] = componentTypeName;
  }
  if (componentType != null) {
    json[r'ComponentType'] = componentType;
  }
  if (connectedFrom != null) {
    json[r'ConnectedFrom'] = connectedFrom;
  }
  if (connectedTo != null) {
    json[r'ConnectedTo'] = connectedTo;
  }
  if (spaces != null) {
    json[r'Spaces'] = spaces;
  }
  if (systems != null) {
    json[r'Systems'] = systems;
  }
  if (componentTypeEntity != null) {
    json[r'ComponentTypeEntity'] = componentTypeEntity;
  }
  if (spaceEntities != null) {
    json[r'SpaceEntities'] = spaceEntities;
  }
  if (subAssemblies != null) {
    json[r'SubAssemblies'] = subAssemblies;
  }
  if (parentAssemblies != null) {
    json[r'ParentAssemblies'] = parentAssemblies;
  }
  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 (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;
}