// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'wallpaper_model.dart';

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

class WallpaperDataAdapter extends TypeAdapter<WallpaperData> {
  @override
  final int typeId = 1;

  @override
  WallpaperData read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return WallpaperData()
      ..banner = fields[0] as String?
      ..original = fields[1] as String?
      ..previewThumb = fields[2] as String?
      ..source = fields[3] as String?;
  }

  @override
  void write(BinaryWriter writer, WallpaperData obj) {
    writer
      ..writeByte(4)
      ..writeByte(0)
      ..write(obj.banner)
      ..writeByte(1)
      ..write(obj.original)
      ..writeByte(2)
      ..write(obj.previewThumb)
      ..writeByte(3)
      ..write(obj.source);
  }

  @override
  int get hashCode => typeId.hashCode;

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