fromJson static method
Returns a new EntityRef instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static EntityRef fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return EntityRef(
ifcGuid: mapValueOfType<String>(json, r'IfcGuid'),
assetModelId: mapValueOfType<int>(json, r'AssetModelId'),
assetId: mapValueOfType<int>(json, r'AssetId'),
entityId: mapValueOfType<int>(json, r'EntityId'),
externalIdentifier: mapValueOfType<String>(json, r'ExternalIdentifier'),
name: mapValueOfType<String>(json, r'Name'),
dateCreated: mapDateTime(json, r'DateCreated', ''),
externalObjectName: mapValueOfType<String>(json, r'ExternalObjectName'),
);
}
return null;
}