toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final initialAudioGain = this.initialAudioGain;
  final inputEndAction = this.inputEndAction;
  final inputLossBehavior = this.inputLossBehavior;
  final outputLockingMode = this.outputLockingMode;
  final outputTimingSource = this.outputTimingSource;
  final supportLowFramerateInputs = this.supportLowFramerateInputs;
  return {
    if (initialAudioGain != null) 'initialAudioGain': initialAudioGain,
    if (inputEndAction != null) 'inputEndAction': inputEndAction.toValue(),
    if (inputLossBehavior != null) 'inputLossBehavior': inputLossBehavior,
    if (outputLockingMode != null)
      'outputLockingMode': outputLockingMode.toValue(),
    if (outputTimingSource != null)
      'outputTimingSource': outputTimingSource.toValue(),
    if (supportLowFramerateInputs != null)
      'supportLowFramerateInputs': supportLowFramerateInputs.toValue(),
  };
}