forked from eatvio/eatvio_app
feat(verify): phone
This commit is contained in:
@@ -5,7 +5,7 @@ part 'ingredient.freezed.dart';
|
||||
part 'ingredient.g.dart';
|
||||
|
||||
@freezed
|
||||
class Ingredient with _$Ingredient {
|
||||
abstract class Ingredient with _$Ingredient {
|
||||
const factory Ingredient({
|
||||
required String name,
|
||||
required String unit,
|
||||
|
||||
@@ -5,7 +5,7 @@ part 'product.freezed.dart';
|
||||
part 'product.g.dart';
|
||||
|
||||
@freezed
|
||||
class Product with _$Product {
|
||||
abstract class Product with _$Product {
|
||||
const factory Product({
|
||||
required int id,
|
||||
required String name,
|
||||
|
||||
@@ -17,7 +17,7 @@ enum RecipeType {
|
||||
}
|
||||
|
||||
@freezed
|
||||
class RecipeCreateModel with _$RecipeCreateModel {
|
||||
abstract class RecipeCreateModel with _$RecipeCreateModel {
|
||||
const factory RecipeCreateModel({
|
||||
required String title,
|
||||
required String state,
|
||||
|
||||
@@ -7,7 +7,7 @@ part 'recipe_model.freezed.dart';
|
||||
part 'recipe_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class RecipeModel with _$RecipeModel {
|
||||
abstract class RecipeModel with _$RecipeModel {
|
||||
const factory RecipeModel({
|
||||
List<Ingredient?>? ingredients,
|
||||
List<Step?>? steps,
|
||||
|
||||
@@ -6,7 +6,7 @@ part 'recipe_tag_model.freezed.dart';
|
||||
part 'recipe_tag_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class RecipeTagModel with _$RecipeTagModel {
|
||||
abstract class RecipeTagModel with _$RecipeTagModel {
|
||||
const factory RecipeTagModel({
|
||||
@JsonKey(name: "data") required List<RecipeTag> data,
|
||||
@JsonKey(name: "links") required Links links,
|
||||
@@ -17,7 +17,7 @@ class RecipeTagModel with _$RecipeTagModel {
|
||||
}
|
||||
|
||||
@freezed
|
||||
class RecipeTag with _$RecipeTag {
|
||||
abstract class RecipeTag with _$RecipeTag {
|
||||
const factory RecipeTag({
|
||||
@JsonKey(name: "id") required int id,
|
||||
@JsonKey(name: "name") required String name,
|
||||
|
||||
@@ -5,7 +5,7 @@ part 'step.freezed.dart';
|
||||
part 'step.g.dart';
|
||||
|
||||
@freezed
|
||||
class Step with _$Step {
|
||||
abstract class Step with _$Step {
|
||||
const factory Step({
|
||||
String? image,
|
||||
String? description,
|
||||
|
||||
Reference in New Issue
Block a user