// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'menu_settings.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class MenuSettingsAdapter extends TypeAdapter<MenuSettings> {
  @override
  final int typeId = 3;

  @override
  MenuSettings read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return MenuSettings(
      title: fields[0] as String,
      includePhoto: fields[1] as bool,
      includePoem: fields[2] as bool,
      includeChart: fields[3] as bool,
      includePrice: fields[4] as bool,
      includeDate: fields[5] as bool,
      includeQr: fields[8] as bool?,
      pdfSize: fields[6] as String,
      isMonochrome: fields[7] as bool,
    );
  }

  @override
  void write(BinaryWriter writer, MenuSettings obj) {
    writer
      ..writeByte(9)
      ..writeByte(0)
      ..write(obj.title)
      ..writeByte(1)
      ..write(obj.includePhoto)
      ..writeByte(2)
      ..write(obj.includePoem)
      ..writeByte(3)
      ..write(obj.includeChart)
      ..writeByte(4)
      ..write(obj.includePrice)
      ..writeByte(5)
      ..write(obj.includeDate)
      ..writeByte(8)
      ..write(obj.includeQr)
      ..writeByte(6)
      ..write(obj.pdfSize)
      ..writeByte(7)
      ..write(obj.isMonochrome);
  }

  @override
  int get hashCode => typeId.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is MenuSettingsAdapter &&
          runtimeType == other.runtimeType &&
          typeId == other.typeId;
}
