1
0
mirror of https://github.com/nrop19/weiman_app.git synced 2025-08-02 23:05:48 +08:00
weiman_app/lib/db/group.g.dart
2020-11-07 21:18:42 +00:00

45 lines
1.0 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'group.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class GroupAdapter extends TypeAdapter<Group> {
@override
final int typeId = 0;
@override
Group read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Group(
fields[0] as String,
fields[1] as bool,
);
}
@override
void write(BinaryWriter writer, Group obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.name)
..writeByte(1)
..write(obj.expended);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is GroupAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}