toJson method
Implementation
Map<String, dynamic> toJson() {
final dashManifests = this.dashManifests;
final encryption = this.encryption;
final periodTriggers = this.periodTriggers;
final segmentDurationSeconds = this.segmentDurationSeconds;
final segmentTemplateFormat = this.segmentTemplateFormat;
return {
'dashManifests': dashManifests,
if (encryption != null) 'encryption': encryption,
if (periodTriggers != null)
'periodTriggers': periodTriggers.map((e) => e.toValue()).toList(),
if (segmentDurationSeconds != null)
'segmentDurationSeconds': segmentDurationSeconds,
if (segmentTemplateFormat != null)
'segmentTemplateFormat': segmentTemplateFormat.toValue(),
};
}