// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'play_mode.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class PlayModeAdapter extends TypeAdapter<PlayMode> {
  @override
  final int typeId = 1;

  @override
  PlayMode read(BinaryReader reader) {
    switch (reader.readByte()) {
      case 0:
        return PlayMode.listLoop;
      case 1:
        return PlayMode.random;
      case 2:
        return PlayMode.singleCycle;
      default:
        return PlayMode.listLoop;
    }
  }

  @override
  void write(BinaryWriter writer, PlayMode obj) {
    switch (obj) {
      case PlayMode.listLoop:
        writer.writeByte(0);
        break;
      case PlayMode.random:
        writer.writeByte(1);
        break;
      case PlayMode.singleCycle:
        writer.writeByte(2);
        break;
    }
  }

  @override
  int get hashCode => typeId.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is PlayModeAdapter &&
          runtimeType == other.runtimeType &&
          typeId == other.typeId;
}
