toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.maxSpeechCaptionMs != null) {
    json[r'max_speech_caption_ms'] = this.maxSpeechCaptionMs;
  } else {
    json[r'max_speech_caption_ms'] = null;
  }
  if (this.silenceDurationMs != null) {
    json[r'silence_duration_ms'] = this.silenceDurationMs;
  } else {
    json[r'silence_duration_ms'] = null;
  }
  return json;
}