TIF_E41201615/lib/data/remote/models/ingredient_model.dart

21 lines
406 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'ingredient_model.g.dart';
@JsonSerializable()
class Ingredient {
String? name;
int? quantity;
String? unit;
Ingredient({
this.name,
this.quantity,
this.unit,
});
Map<String, dynamic> toJson() => _$IngredientToJson(this);
factory Ingredient.fromJson(Map<String, dynamic> json) =>
_$IngredientFromJson(json);
}