toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adTriggers = this.adTriggers;
  final adsOnDeliveryRestrictions = this.adsOnDeliveryRestrictions;
  final encryption = this.encryption;
  final manifestLayout = this.manifestLayout;
  final manifestWindowSeconds = this.manifestWindowSeconds;
  final minBufferTimeSeconds = this.minBufferTimeSeconds;
  final minUpdatePeriodSeconds = this.minUpdatePeriodSeconds;
  final periodTriggers = this.periodTriggers;
  final profile = this.profile;
  final segmentDurationSeconds = this.segmentDurationSeconds;
  final segmentTemplateFormat = this.segmentTemplateFormat;
  final streamSelection = this.streamSelection;
  final suggestedPresentationDelaySeconds =
      this.suggestedPresentationDelaySeconds;
  final utcTiming = this.utcTiming;
  final utcTimingUri = this.utcTimingUri;
  return {
    if (adTriggers != null)
      'adTriggers': adTriggers.map((e) => e.toValue()).toList(),
    if (adsOnDeliveryRestrictions != null)
      'adsOnDeliveryRestrictions': adsOnDeliveryRestrictions.toValue(),
    if (encryption != null) 'encryption': encryption,
    if (manifestLayout != null) 'manifestLayout': manifestLayout.toValue(),
    if (manifestWindowSeconds != null)
      'manifestWindowSeconds': manifestWindowSeconds,
    if (minBufferTimeSeconds != null)
      'minBufferTimeSeconds': minBufferTimeSeconds,
    if (minUpdatePeriodSeconds != null)
      'minUpdatePeriodSeconds': minUpdatePeriodSeconds,
    if (periodTriggers != null)
      'periodTriggers': periodTriggers.map((e) => e.toValue()).toList(),
    if (profile != null) 'profile': profile.toValue(),
    if (segmentDurationSeconds != null)
      'segmentDurationSeconds': segmentDurationSeconds,
    if (segmentTemplateFormat != null)
      'segmentTemplateFormat': segmentTemplateFormat.toValue(),
    if (streamSelection != null) 'streamSelection': streamSelection,
    if (suggestedPresentationDelaySeconds != null)
      'suggestedPresentationDelaySeconds': suggestedPresentationDelaySeconds,
    if (utcTiming != null) 'utcTiming': utcTiming.toValue(),
    if (utcTimingUri != null) 'utcTimingUri': utcTimingUri,
  };
}