DiscoverModule/lib/ui_screen/add_event/model/event_model.g.dart

48 lines
1.2 KiB
Dart
Raw Permalink Normal View History

2024-05-20 10:29:02 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'event_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class EventConfigDataAdapter extends TypeAdapter<EventConfigData> {
@override
final int typeId = 20;
@override
EventConfigData read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return EventConfigData(
widgets: fields[1] as InteractionResultData,
id: fields[2] as String,
name: fields[3] as String,
);
}
@override
void write(BinaryWriter writer, EventConfigData obj) {
writer
..writeByte(3)
..writeByte(1)
..write(obj.widgets)
..writeByte(2)
..write(obj.id)
..writeByte(3)
..write(obj.name);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is EventConfigDataAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}