ManufacturedItemDefinitionProperty.fromJsonString constructor

ManufacturedItemDefinitionProperty.fromJsonString(
  1. String source
)

Acts like a constructor, returns a ManufacturedItemDefinitionProperty, accepts a String as an argument, mostly because I got tired of typing it out

Implementation

factory ManufacturedItemDefinitionProperty.fromJsonString(String source) {
  final dynamic json = jsonDecode(source);
  if (json is Map<String, dynamic>) {
    return _$ManufacturedItemDefinitionPropertyFromJson(json);
  } else {
    throw FormatException('FormatException: You passed $json'
        'This does not properly decode to a Map<String,dynamic>.');
  }
}