toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (definitionId != null) {
    json[r'DefinitionId'] = definitionId;
  }
  if (assetModelId != null) {
    json[r'AssetModelId'] = assetModelId;
  }
  if (entityId != null) {
    json[r'EntityId'] = entityId;
  }
  if (value != null) {
    json[r'Value'] = value;
  }
  if (dateCreated != null) {
    json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
  }
  if (dateModified != null) {
    json[r'DateModified'] = dateModified.toUtc().toIso8601String();
  }
  if (entity != null) {
    json[r'Entity'] = entity;
  }
  return json;
}