toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.closedCaptionMode != null) {
    json[r'closed_caption_mode'] = this.closedCaptionMode;
  } else {
    json[r'closed_caption_mode'] = null;
  }
  if (this.language != null) {
    json[r'language'] = this.language;
  } else {
    json[r'language'] = null;
  }
  if (this.mode != null) {
    json[r'mode'] = this.mode;
  } else {
    json[r'mode'] = null;
  }
  if (this.speechSegmentConfig != null) {
    json[r'speech_segment_config'] = this.speechSegmentConfig;
  } else {
    json[r'speech_segment_config'] = null;
  }
  if (this.translation != null) {
    json[r'translation'] = this.translation;
  } else {
    json[r'translation'] = null;
  }
  return json;
}