// GENERATED CODE - DO NOT MODIFY BY HAND part of 'event_model.dart'; // ************************************************************************** // TypeAdapterGenerator // ************************************************************************** class EventConfigDataAdapter extends TypeAdapter { @override final int typeId = 20; @override EventConfigData read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = { 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; }