GetComponentResponse.fromJson constructor

GetComponentResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetComponentResponse.fromJson(Map<String, dynamic> json) {
  return GetComponentResponse(
    recipe: _s.decodeUint8List(json['recipe']! as String),
    recipeOutputFormat:
        (json['recipeOutputFormat'] as String).toRecipeOutputFormat(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}