KonectarApp/lib/model/hive_api_constants.g.dart

54 lines
1.4 KiB
Dart
Raw Normal View History

2024-12-10 09:36:43 +00:00
// 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?,
2024-12-10 10:30:04 +00:00
method: fields[2] as String?,
module: fields[3] as String?,
2024-12-19 10:29:43 +00:00
hivename: fields[4] as String?,
2024-12-10 10:30:04 +00:00
);
2024-12-10 09:36:43 +00:00
}
@override
void write(BinaryWriter writer, HiveApiConstants obj) {
writer
2024-12-19 10:29:43 +00:00
..writeByte(5)
2024-12-10 09:36:43 +00:00
..writeByte(0)
..write(obj.functionName)
..writeByte(1)
..write(obj.interval)
..writeByte(2)
..write(obj.method)
..writeByte(3)
2024-12-19 10:29:43 +00:00
..write(obj.module)
..writeByte(4)
..write(obj.hivename);
2024-12-10 09:36:43 +00:00
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is HiveApiConstantsAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}