toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'encoder': encoder.name,
    'bitRate': bitRate,
    'sampleRate': sampleRate,
    'numChannels': numChannels,
    'device': device?.toMap(),
    'autoGain': autoGain,
    'echoCancel': echoCancel,
    'noiseSuppress': noiseSuppress,
    'androidConfig': androidConfig.toMap(),
    'iosConfig': iosConfig.toMap(),
  };
}