toJson method
Implementation
Map<String, dynamic> toJson() {
final customLanguageCode = this.customLanguageCode;
final defaultSelection = this.defaultSelection;
final externalAudioFileInput = this.externalAudioFileInput;
final languageCode = this.languageCode;
final offset = this.offset;
final pids = this.pids;
final programSelection = this.programSelection;
final remixSettings = this.remixSettings;
final selectorType = this.selectorType;
final tracks = this.tracks;
return {
if (customLanguageCode != null) 'customLanguageCode': customLanguageCode,
if (defaultSelection != null)
'defaultSelection': defaultSelection.toValue(),
if (externalAudioFileInput != null)
'externalAudioFileInput': externalAudioFileInput,
if (languageCode != null) 'languageCode': languageCode.toValue(),
if (offset != null) 'offset': offset,
if (pids != null) 'pids': pids,
if (programSelection != null) 'programSelection': programSelection,
if (remixSettings != null) 'remixSettings': remixSettings,
if (selectorType != null) 'selectorType': selectorType.toValue(),
if (tracks != null) 'tracks': tracks,
};
}