fromJson static method
Returns a new AttributeDefinition instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static AttributeDefinition fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return AttributeDefinition(
fullName: mapValueOfType<String>(json, r'FullName'),
groupName: mapValueOfType<String>(json, r'GroupName'),
groupType: AttributeDefinitionGroupTypeEnum.fromJson(json[r'GroupType']),
name: mapValueOfType<String>(json, r'Name'),
canonicalName: mapValueOfType<String>(json, r'CanonicalName'),
imported: mapValueOfType<bool>(json, r'Imported'),
semanticType: mapValueOfType<String>(json, r'SemanticType'),
unit: mapValueOfType<String>(json, r'Unit'),
dataType: AttributeDefinitionDataTypeEnum.fromJson(json[r'DataType']),
dateCreated: mapDateTime(json, r'DateCreated', ''),
dateModified: mapDateTime(json, r'DateModified', ''),
);
}
return null;
}