toJson method
Implementation
Map<String, dynamic> toJson() {
final adMarkers = this.adMarkers;
final adTriggers = this.adTriggers;
final adsOnDeliveryRestrictions = this.adsOnDeliveryRestrictions;
final encryption = this.encryption;
final includeIframeOnlyStream = this.includeIframeOnlyStream;
final playlistType = this.playlistType;
final playlistWindowSeconds = this.playlistWindowSeconds;
final programDateTimeIntervalSeconds = this.programDateTimeIntervalSeconds;
final segmentDurationSeconds = this.segmentDurationSeconds;
final streamSelection = this.streamSelection;
final useAudioRenditionGroup = this.useAudioRenditionGroup;
return {
if (adMarkers != null) 'adMarkers': adMarkers.toValue(),
if (adTriggers != null)
'adTriggers': adTriggers.map((e) => e.toValue()).toList(),
if (adsOnDeliveryRestrictions != null)
'adsOnDeliveryRestrictions': adsOnDeliveryRestrictions.toValue(),
if (encryption != null) 'encryption': encryption,
if (includeIframeOnlyStream != null)
'includeIframeOnlyStream': includeIframeOnlyStream,
if (playlistType != null) 'playlistType': playlistType.toValue(),
if (playlistWindowSeconds != null)
'playlistWindowSeconds': playlistWindowSeconds,
if (programDateTimeIntervalSeconds != null)
'programDateTimeIntervalSeconds': programDateTimeIntervalSeconds,
if (segmentDurationSeconds != null)
'segmentDurationSeconds': segmentDurationSeconds,
if (streamSelection != null) 'streamSelection': streamSelection,
if (useAudioRenditionGroup != null)
'useAudioRenditionGroup': useAudioRenditionGroup,
};
}