content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'task_model.dart';
  
  // **************************************************************************
  // TypeAdapterGenerator
  // **************************************************************************
  
  class TaskModelAdapter extends TypeAdapter<TaskModel> {
    @override
    final int typeId = 10;
  
    @override
    TaskModel read(BinaryReader reader) {
      final numOfFields = reader.readByte();
      final fields = <int, dynamic>{
        for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
      };
      return TaskModel(
        id: fields[0] as String,
        title: fields[1] as String,
        status: fields[3] as TaskStatus,
        createdAt: fields[4] as int,
        updatedAt: fields[5] as int,
        pomodorosCompleted: fields[7] as int,
        startDate: fields[9] as int,
        endDate: fields[10] as int,
        ongoing: fields[11] as bool,
        description: fields[2] as String?,
        completedAt: fields[6] as int?,
        estimatedPomodoros: fields[8] as int?,
        hasReminder: fields[12] as bool,
        reminderTime: fields[13] as int?,
        projectId: fields[14] as String,
      );
    }
  
    @override
    void write(BinaryWriter writer, TaskModel obj) {
      writer
        ..writeByte(15)
        ..writeByte(0)
        ..write(obj.id)
        ..writeByte(1)
        ..write(obj.title)
        ..writeByte(2)
        ..write(obj.description)
        ..writeByte(3)
        ..write(obj.status)
        ..writeByte(4)
        ..write(obj.createdAt)
        ..writeByte(5)
        ..write(obj.updatedAt)
        ..writeByte(6)
        ..write(obj.completedAt)
        ..writeByte(7)
        ..write(obj.pomodorosCompleted)
        ..writeByte(8)
        ..write(obj.estimatedPomodoros)
        ..writeByte(9)
        ..write(obj.startDate)
        ..writeByte(10)
        ..write(obj.endDate)
        ..writeByte(11)
        ..write(obj.ongoing)
        ..writeByte(12)
        ..write(obj.hasReminder)
        ..writeByte(13)
        ..write(obj.reminderTime)
        ..writeByte(14)
        ..write(obj.projectId);
    }
  
    @override
    int get hashCode => typeId.hashCode;
  
    @override
    bool operator ==(Object other) =>
        identical(this, other) ||
        other is TaskModelAdapter &&
            runtimeType == other.runtimeType &&
            typeId == other.typeId;
  }
  