toJson method

Map<String, dynamic> toJson()

Implementation

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