generated hive code for last commit
This commit is contained in:
parent
11c05e785a
commit
c1d1595d8c
1 changed files with 5 additions and 3 deletions
|
@ -21,13 +21,13 @@ class PizzaRecipeAdapter extends TypeAdapter<PizzaRecipe> {
|
||||||
fields[1] as String,
|
fields[1] as String,
|
||||||
(fields[2] as List).cast<Ingredient>(),
|
(fields[2] as List).cast<Ingredient>(),
|
||||||
(fields[3] as List).cast<RecipeStep>(),
|
(fields[3] as List).cast<RecipeStep>(),
|
||||||
);
|
)..deleted = fields[4] as bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void write(BinaryWriter writer, PizzaRecipe obj) {
|
void write(BinaryWriter writer, PizzaRecipe obj) {
|
||||||
writer
|
writer
|
||||||
..writeByte(4)
|
..writeByte(5)
|
||||||
..writeByte(0)
|
..writeByte(0)
|
||||||
..write(obj.name)
|
..write(obj.name)
|
||||||
..writeByte(1)
|
..writeByte(1)
|
||||||
|
@ -35,7 +35,9 @@ class PizzaRecipeAdapter extends TypeAdapter<PizzaRecipe> {
|
||||||
..writeByte(2)
|
..writeByte(2)
|
||||||
..write(obj.ingredients)
|
..write(obj.ingredients)
|
||||||
..writeByte(3)
|
..writeByte(3)
|
||||||
..write(obj.recipeSteps);
|
..write(obj.recipeSteps)
|
||||||
|
..writeByte(4)
|
||||||
|
..write(obj.deleted);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Add table
Reference in a new issue