51 lines
1.3 KiB
Dart
51 lines
1.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'hive_api_constants.dart';
|
|
|
|
// **************************************************************************
|
|
// TypeAdapterGenerator
|
|
// **************************************************************************
|
|
|
|
class HiveApiConstantsAdapter extends TypeAdapter<HiveApiConstants> {
|
|
@override
|
|
final int typeId = 106;
|
|
|
|
@override
|
|
HiveApiConstants read(BinaryReader reader) {
|
|
final numOfFields = reader.readByte();
|
|
final fields = <int, dynamic>{
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
};
|
|
return HiveApiConstants(
|
|
functionName: fields[0] as String?,
|
|
interval: fields[1] as int?,
|
|
method: fields[2] as String?,
|
|
module: fields[3] as String?,
|
|
);
|
|
}
|
|
|
|
@override
|
|
void write(BinaryWriter writer, HiveApiConstants obj) {
|
|
writer
|
|
..writeByte(4)
|
|
..writeByte(0)
|
|
..write(obj.functionName)
|
|
..writeByte(1)
|
|
..write(obj.interval)
|
|
..writeByte(2)
|
|
..write(obj.method)
|
|
..writeByte(3)
|
|
..write(obj.module);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => typeId.hashCode;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is HiveApiConstantsAdapter &&
|
|
runtimeType == other.runtimeType &&
|
|
typeId == other.typeId;
|
|
}
|