// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'generate_info_model.dart';

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

class GenerateInfoModelAdapter extends TypeAdapter<GenerateInfoModel> {
  @override
  final int typeId = 4;

  @override
  GenerateInfoModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return GenerateInfoModel(
      prompt: fields[0] as String?,
      negativePrompt: fields[1] as String?,
      samplingMethod: fields[2] as String?,
      samplingStep: fields[3] as int?,
      cfgScale: fields[4] as int?,
      seed: fields[5] as int?,
    );
  }

  @override
  void write(BinaryWriter writer, GenerateInfoModel obj) {
    writer
      ..writeByte(6)
      ..writeByte(0)
      ..write(obj.prompt)
      ..writeByte(1)
      ..write(obj.negativePrompt)
      ..writeByte(2)
      ..write(obj.samplingMethod)
      ..writeByte(3)
      ..write(obj.samplingStep)
      ..writeByte(4)
      ..write(obj.cfgScale)
      ..writeByte(5)
      ..write(obj.seed);
  }

  @override
  int get hashCode => typeId.hashCode;

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