toMap method

Map<String, Object?> toMap()

Converts this object to a platform-channel map.

Implementation

Map<String, Object?> toMap() => <String, Object?>{
      'category': category.name,
      'mode': mode.name,
      'allowBluetooth': allowBluetooth,
      'allowAirPlay': allowAirPlay,
      'mixWithOthers': mixWithOthers,
      'defaultToSpeaker': defaultToSpeaker,
      'preferredSampleRate': preferredSampleRate,
      'preferredBufferDuration': preferredBufferDuration,
    };