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