ponshu-room-lite/lib/models/schema/gamification.g.dart

48 lines
1.2 KiB
Dart
Raw Normal View History

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