import 'package:json_annotation/json_annotation.dart'; import 'package:snap_and_cook_mobile/data/remote/models/ingredient_model.dart'; part 'detect_ingredient_request.g.dart'; @JsonSerializable() class DetectIngredientRequest { List? ingredients; List? utensils; DetectIngredientRequest({ this.ingredients, this.utensils, }); Map toJson() => _$DetectIngredientRequestToJson(this); factory DetectIngredientRequest.fromJson(Map json) => _$DetectIngredientRequestFromJson(json); }