2021-11-09 04:22:04 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
2021-11-14 19:21:20 +01:00
|
|
|
part of 'chest_data.dart';
|
2021-11-09 04:22:04 +01:00
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// TypeAdapterGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
class ChestDataAdapter extends TypeAdapter<ChestData> {
|
|
|
|
@override
|
|
|
|
final int typeId = 1;
|
|
|
|
|
|
|
|
@override
|
|
|
|
ChestData read(BinaryReader reader) {
|
|
|
|
final numOfFields = reader.readByte();
|
|
|
|
final fields = <int, dynamic>{
|
|
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
|
|
};
|
|
|
|
return ChestData(
|
2021-12-23 12:36:09 +01:00
|
|
|
dewif: fields[0] as String?,
|
2022-03-02 21:33:50 +01:00
|
|
|
rootAddress: fields[1] as String?,
|
2021-12-23 12:36:09 +01:00
|
|
|
name: fields[2] as String?,
|
|
|
|
defaultWallet: fields[3] as int?,
|
|
|
|
imageName: fields[4] as String?,
|
|
|
|
imageFile: fields[5] as File?,
|
|
|
|
isCesium: fields[6] as bool?,
|
2021-11-09 04:22:04 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void write(BinaryWriter writer, ChestData obj) {
|
|
|
|
writer
|
2022-03-02 21:33:50 +01:00
|
|
|
..writeByte(7)
|
2021-11-09 04:22:04 +01:00
|
|
|
..writeByte(0)
|
|
|
|
..write(obj.dewif)
|
2022-03-02 21:33:50 +01:00
|
|
|
..writeByte(1)
|
|
|
|
..write(obj.rootAddress)
|
2021-11-09 04:22:04 +01:00
|
|
|
..writeByte(2)
|
2021-11-12 01:35:38 +01:00
|
|
|
..write(obj.name)
|
|
|
|
..writeByte(3)
|
2021-11-14 03:12:07 +01:00
|
|
|
..write(obj.defaultWallet)
|
|
|
|
..writeByte(4)
|
2021-11-14 04:33:59 +01:00
|
|
|
..write(obj.imageName)
|
|
|
|
..writeByte(5)
|
2021-11-17 06:20:23 +01:00
|
|
|
..write(obj.imageFile)
|
|
|
|
..writeByte(6)
|
2021-11-14 04:33:59 +01:00
|
|
|
..write(obj.isCesium);
|
2021-11-09 04:22:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => typeId.hashCode;
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is ChestDataAdapter &&
|
|
|
|
runtimeType == other.runtimeType &&
|
|
|
|
typeId == other.typeId;
|
|
|
|
}
|