toJson method
Implementation
Map<String, dynamic> toJson() {
final encryption = this.encryption;
final hlsManifests = this.hlsManifests;
final segmentDurationSeconds = this.segmentDurationSeconds;
final segmentPrefix = this.segmentPrefix;
final streamSelection = this.streamSelection;
return {
if (encryption != null) 'encryption': encryption,
if (hlsManifests != null) 'hlsManifests': hlsManifests,
if (segmentDurationSeconds != null)
'segmentDurationSeconds': segmentDurationSeconds,
if (segmentPrefix != null) 'segmentPrefix': segmentPrefix,
if (streamSelection != null) 'streamSelection': streamSelection,
};
}