toJson method
Implementation
Map<String, dynamic> toJson() {
final ancillarySourceSettings = this.ancillarySourceSettings;
final dvbSubSourceSettings = this.dvbSubSourceSettings;
final embeddedSourceSettings = this.embeddedSourceSettings;
final fileSourceSettings = this.fileSourceSettings;
final sourceType = this.sourceType;
final teletextSourceSettings = this.teletextSourceSettings;
final trackSourceSettings = this.trackSourceSettings;
return {
if (ancillarySourceSettings != null)
'ancillarySourceSettings': ancillarySourceSettings,
if (dvbSubSourceSettings != null)
'dvbSubSourceSettings': dvbSubSourceSettings,
if (embeddedSourceSettings != null)
'embeddedSourceSettings': embeddedSourceSettings,
if (fileSourceSettings != null) 'fileSourceSettings': fileSourceSettings,
if (sourceType != null) 'sourceType': sourceType.toValue(),
if (teletextSourceSettings != null)
'teletextSourceSettings': teletextSourceSettings,
if (trackSourceSettings != null)
'trackSourceSettings': trackSourceSettings,
};
}