fromJson static method
Returns a new DocumentCreate instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static DocumentCreate fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return DocumentCreate(
url: mapValueOfType<String>(json, r'Url'),
location: mapValueOfType<String>(json, r'Location'),
itemReference: mapValueOfType<String>(json, r'ItemReference'),
scope: mapValueOfType<String>(json, r'Scope'),
revision: mapValueOfType<String>(json, r'Revision'),
purpose: mapValueOfType<String>(json, r'Purpose'),
intendedUse: mapValueOfType<String>(json, r'IntendedUse'),
assetModelId: mapValueOfType<int>(json, r'AssetModelId'),
entityId: mapValueOfType<int>(json, r'EntityId'),
externalIdentifier: mapValueOfType<String>(json, r'ExternalIdentifier'),
name: mapValueOfType<String>(json, r'Name'),
description: mapValueOfType<String>(json, r'Description'),
externalObjectType: mapValueOfType<String>(json, r'ExternalObjectType'),
);
}
return null;
}