// GENERATED CODE - DO NOT MODIFY BY HAND part of 'data_util.dart'; // ************************************************************************** // TypeAdapterGenerator // ************************************************************************** class ListAdapter extends TypeAdapter { @override final int typeId = 1; @override List read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = { for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), }; return List( fields[1] as String, id: fields[0] as int?, description: fields[2] as String?, isTemplate: fields[3] as bool?, checks: (fields[4] as core.List).cast(), ); } @override void write(BinaryWriter writer, List obj) { writer ..writeByte(5) ..writeByte(0) ..write(obj.id) ..writeByte(1) ..write(obj.name) ..writeByte(2) ..write(obj.description) ..writeByte(3) ..write(obj.isTemplate) ..writeByte(4) ..write(obj.checks); } @override int get hashCode => typeId.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is ListAdapter && runtimeType == other.runtimeType && typeId == other.typeId; } class CheckAdapter extends TypeAdapter { @override final int typeId = 2; @override Check read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = { for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), }; return Check( fields[6] as String, fields[7] as bool, id: fields[5] as int?, listID: fields[8] as int?, ); } @override void write(BinaryWriter writer, Check obj) { writer ..writeByte(4) ..writeByte(5) ..write(obj.id) ..writeByte(6) ..write(obj.text) ..writeByte(7) ..write(obj.value) ..writeByte(8) ..write(obj.listID); } @override int get hashCode => typeId.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is CheckAdapter && runtimeType == other.runtimeType && typeId == other.typeId; }