pizzaplanner/lib/entities/PizzaRecipe/recipe_substep.g.dart

46 lines
1.2 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'recipe_substep.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class RecipeSubStepAdapter extends TypeAdapter<RecipeSubStep> {
@override
final int typeId = 3;
@override
RecipeSubStep read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return RecipeSubStep(
fields[0] as String,
fields[1] as String,
)..completedOn = fields[2] as DateTime?;
}
@override
void write(BinaryWriter writer, RecipeSubStep obj) {
writer
..writeByte(3)
..writeByte(0)
..write(obj.name)
..writeByte(1)
..write(obj.description)
..writeByte(2)
..write(obj.completedOn);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is RecipeSubStepAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}