// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'widely_used_local_model.dart';

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

class WidelyUsedLocalModelAdapter extends TypeAdapter<WidelyUsedLocalModel> {
  @override
  final typeId = 4;

  @override
  WidelyUsedLocalModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return WidelyUsedLocalModel(
      hasInit: fields[0] as bool?,
      items: (fields[1] as List?)?.cast<WidelyUsedLocalItem>(),
    );
  }

  @override
  void write(BinaryWriter writer, WidelyUsedLocalModel obj) {
    writer
      ..writeByte(2)
      ..writeByte(0)
      ..write(obj.hasInit)
      ..writeByte(1)
      ..write(obj.items);
  }

  @override
  int get hashCode => typeId.hashCode;

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

class WidelyUsedLocalItemAdapter extends TypeAdapter<WidelyUsedLocalItem> {
  @override
  final typeId = 5;

  @override
  WidelyUsedLocalItem read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return WidelyUsedLocalItem(
      title: fields[0] as String?,
      iconPath: fields[1] as String?,
      iconColor: (fields[2] as num?)?.toInt(),
      color: (fields[3] as num?)?.toInt(),
      path: fields[4] as String?,
      pathId: (fields[5] as num?)?.toInt(),
      index: (fields[6] as num?)?.toInt(),
    );
  }

  @override
  void write(BinaryWriter writer, WidelyUsedLocalItem obj) {
    writer
      ..writeByte(7)
      ..writeByte(0)
      ..write(obj.title)
      ..writeByte(1)
      ..write(obj.iconPath)
      ..writeByte(2)
      ..write(obj.iconColor)
      ..writeByte(3)
      ..write(obj.color)
      ..writeByte(4)
      ..write(obj.path)
      ..writeByte(5)
      ..write(obj.pathId)
      ..writeByte(6)
      ..write(obj.index);
  }

  @override
  int get hashCode => typeId.hashCode;

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