2021-11-07 04:23:05 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
2021-11-14 19:21:20 +01:00
|
|
|
part of 'wallet_data.dart';
|
2021-11-07 04:23:05 +01:00
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// TypeAdapterGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
class WalletDataAdapter extends TypeAdapter<WalletData> {
|
|
|
|
@override
|
|
|
|
final int typeId = 0;
|
|
|
|
|
|
|
|
@override
|
|
|
|
WalletData read(BinaryReader reader) {
|
|
|
|
final numOfFields = reader.readByte();
|
|
|
|
final fields = <int, dynamic>{
|
|
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
|
|
};
|
|
|
|
return WalletData(
|
2022-12-06 22:33:42 +01:00
|
|
|
address: fields[0] as String,
|
|
|
|
version: fields[1] as int?,
|
|
|
|
chest: fields[2] as int?,
|
2022-05-24 16:51:40 +02:00
|
|
|
number: fields[3] as int?,
|
|
|
|
name: fields[4] as String?,
|
|
|
|
derivation: fields[5] as int?,
|
2022-05-28 19:13:30 +02:00
|
|
|
imageDefaultPath: fields[6] as String?,
|
|
|
|
imageCustomPath: fields[7] as String?,
|
2021-11-07 04:23:05 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void write(BinaryWriter writer, WalletData obj) {
|
|
|
|
writer
|
2022-05-24 16:51:40 +02:00
|
|
|
..writeByte(8)
|
2021-11-07 04:23:05 +01:00
|
|
|
..writeByte(0)
|
2022-12-06 22:33:42 +01:00
|
|
|
..write(obj.address)
|
2021-11-07 04:23:05 +01:00
|
|
|
..writeByte(1)
|
2022-12-06 22:33:42 +01:00
|
|
|
..write(obj.version)
|
2021-11-07 04:23:05 +01:00
|
|
|
..writeByte(2)
|
2022-12-06 22:33:42 +01:00
|
|
|
..write(obj.chest)
|
2021-11-07 04:23:05 +01:00
|
|
|
..writeByte(3)
|
2022-05-24 16:51:40 +02:00
|
|
|
..write(obj.number)
|
2021-11-11 14:45:12 +01:00
|
|
|
..writeByte(4)
|
2022-05-24 16:51:40 +02:00
|
|
|
..write(obj.name)
|
2021-11-17 06:20:23 +01:00
|
|
|
..writeByte(5)
|
2022-05-24 16:51:40 +02:00
|
|
|
..write(obj.derivation)
|
2022-05-19 07:00:25 +02:00
|
|
|
..writeByte(6)
|
2022-05-28 19:13:30 +02:00
|
|
|
..write(obj.imageDefaultPath)
|
2022-05-24 16:51:40 +02:00
|
|
|
..writeByte(7)
|
2022-05-28 19:13:30 +02:00
|
|
|
..write(obj.imageCustomPath);
|
2021-11-07 04:23:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => typeId.hashCode;
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is WalletDataAdapter &&
|
|
|
|
runtimeType == other.runtimeType &&
|
|
|
|
typeId == other.typeId;
|
|
|
|
}
|