KonectarApp/lib/model/hive_api_constants.g.dart

54 lines
1.4 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?,
hivename: fields[4] as String?,
);
}
@override
void write(BinaryWriter writer, HiveApiConstants obj) {
writer
..writeByte(5)
..writeByte(0)
..write(obj.functionName)
..writeByte(1)
..write(obj.interval)
..writeByte(2)
..write(obj.method)
..writeByte(3)
..write(obj.module)
..writeByte(4)
..write(obj.hivename);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is HiveApiConstantsAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}