toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (fullName != null) {
    json[r'FullName'] = fullName;
  }
  if (assetModelId != null) {
    json[r'AssetModelId'] = assetModelId;
  }
  if (attributeDefinitionId != null) {
    json[r'AttributeDefinitionId'] = attributeDefinitionId;
  }
  if (model != null) {
    json[r'Model'] = model;
  }
  if (values != null) {
    json[r'Values'] = values;
  }
  if (groupName != null) {
    json[r'GroupName'] = groupName;
  }
  if (groupType != null) {
    json[r'GroupType'] = groupType;
  }
  if (name != null) {
    json[r'Name'] = name;
  }
  if (canonicalName != null) {
    json[r'CanonicalName'] = canonicalName;
  }
  if (imported != null) {
    json[r'Imported'] = imported;
  }
  if (semanticType != null) {
    json[r'SemanticType'] = semanticType;
  }
  if (unit != null) {
    json[r'Unit'] = unit;
  }
  if (dataType != null) {
    json[r'DataType'] = dataType;
  }
  if (dateCreated != null) {
    json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
  }
  if (dateModified != null) {
    json[r'DateModified'] = dateModified.toUtc().toIso8601String();
  }
  return json;
}