fromJson static method
Returns a new ModelCreate instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static ModelCreate fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return ModelCreate(
assetId: mapValueOfType<int>(json, r'AssetId'),
name: mapValueOfType<String>(json, r'Name'),
revision: mapValueOfType<String>(json, r'Revision'),
status: mapValueOfType<String>(json, r'Status'),
state: ModelCreateStateEnum.fromJson(json[r'State']),
segmentName: mapValueOfType<String>(json, r'SegmentName'),
);
}
return null;
}