fromJson static method

AssetEdit fromJson(
  1. dynamic value
)

Returns a new AssetEdit instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static AssetEdit fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return AssetEdit(
      name: mapValueOfType<String>(json, r'Name'),
      state: AssetEditStateEnum.fromJson(json[r'State']),
    );
  }
  return null;
}