fromJson static method
Returns a new ComponentEdit instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static ComponentEdit fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return ComponentEdit(
componentTypeId: mapValueOfType<int>(json, r'ComponentTypeId'),
name: mapValueOfType<String>(json, r'Name'),
description: mapValueOfType<String>(json, r'Description'),
externalObjectType: mapValueOfType<String>(json, r'ExternalObjectType'),
);
}
return null;
}