toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final audioChannelTaggingSettings = this.audioChannelTaggingSettings;
  final audioNormalizationSettings = this.audioNormalizationSettings;
  final audioSourceName = this.audioSourceName;
  final audioType = this.audioType;
  final audioTypeControl = this.audioTypeControl;
  final codecSettings = this.codecSettings;
  final customLanguageCode = this.customLanguageCode;
  final languageCode = this.languageCode;
  final languageCodeControl = this.languageCodeControl;
  final remixSettings = this.remixSettings;
  final streamName = this.streamName;
  return {
    if (audioChannelTaggingSettings != null)
      'audioChannelTaggingSettings': audioChannelTaggingSettings,
    if (audioNormalizationSettings != null)
      'audioNormalizationSettings': audioNormalizationSettings,
    if (audioSourceName != null) 'audioSourceName': audioSourceName,
    if (audioType != null) 'audioType': audioType,
    if (audioTypeControl != null)
      'audioTypeControl': audioTypeControl.toValue(),
    if (codecSettings != null) 'codecSettings': codecSettings,
    if (customLanguageCode != null) 'customLanguageCode': customLanguageCode,
    if (languageCode != null) 'languageCode': languageCode.toValue(),
    if (languageCodeControl != null)
      'languageCodeControl': languageCodeControl.toValue(),
    if (remixSettings != null) 'remixSettings': remixSettings,
    if (streamName != null) 'streamName': streamName,
  };
}