// GENERATED CODE - DO NOT MODIFY BY HAND part of 'inspiration_image.dart'; // ************************************************************************** // TypeAdapterGenerator // ************************************************************************** class InspirationImageAdapter extends TypeAdapter { @override final int typeId = 0; @override InspirationImage read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = { for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), }; return InspirationImage( id: fields[0] as String, filePath: fields[1] as String, thumbnailPath: fields[2] as String, folderId: fields[3] as String?, tags: (fields[4] as List).cast(), note: fields[5] as String?, createdAt: fields[6] as DateTime, updatedAt: fields[7] as DateTime, originalName: fields[8] as String?, fileSize: fields[9] as int, mimeType: fields[10] as String, width: fields[11] as int?, height: fields[12] as int?, isFavorite: fields[13] as bool, ); } @override void write(BinaryWriter writer, InspirationImage obj) { writer ..writeByte(14) ..writeByte(0) ..write(obj.id) ..writeByte(1) ..write(obj.filePath) ..writeByte(2) ..write(obj.thumbnailPath) ..writeByte(3) ..write(obj.folderId) ..writeByte(4) ..write(obj.tags) ..writeByte(5) ..write(obj.note) ..writeByte(6) ..write(obj.createdAt) ..writeByte(7) ..write(obj.updatedAt) ..writeByte(8) ..write(obj.originalName) ..writeByte(9) ..write(obj.fileSize) ..writeByte(10) ..write(obj.mimeType) ..writeByte(11) ..write(obj.width) ..writeByte(12) ..write(obj.height) ..writeByte(13) ..write(obj.isFavorite); } @override int get hashCode => typeId.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is InspirationImageAdapter && runtimeType == other.runtimeType && typeId == other.typeId; }