toJson method
Implementation
Map<String, dynamic> toJson() {
final adMarkers = this.adMarkers;
final additionalManifests = this.additionalManifests;
final audioOnlyHeader = this.audioOnlyHeader;
final baseUrl = this.baseUrl;
final captionLanguageMappings = this.captionLanguageMappings;
final captionLanguageSetting = this.captionLanguageSetting;
final clientCache = this.clientCache;
final codecSpecification = this.codecSpecification;
final destination = this.destination;
final destinationSettings = this.destinationSettings;
final directoryStructure = this.directoryStructure;
final encryption = this.encryption;
final manifestCompression = this.manifestCompression;
final manifestDurationFormat = this.manifestDurationFormat;
final minFinalSegmentLength = this.minFinalSegmentLength;
final minSegmentLength = this.minSegmentLength;
final outputSelection = this.outputSelection;
final programDateTime = this.programDateTime;
final programDateTimePeriod = this.programDateTimePeriod;
final segmentControl = this.segmentControl;
final segmentLength = this.segmentLength;
final segmentsPerSubdirectory = this.segmentsPerSubdirectory;
final streamInfResolution = this.streamInfResolution;
final timedMetadataId3Frame = this.timedMetadataId3Frame;
final timedMetadataId3Period = this.timedMetadataId3Period;
final timestampDeltaMilliseconds = this.timestampDeltaMilliseconds;
return {
if (adMarkers != null)
'adMarkers': adMarkers.map((e) => e.toValue()).toList(),
if (additionalManifests != null)
'additionalManifests': additionalManifests,
if (audioOnlyHeader != null) 'audioOnlyHeader': audioOnlyHeader.toValue(),
if (baseUrl != null) 'baseUrl': baseUrl,
if (captionLanguageMappings != null)
'captionLanguageMappings': captionLanguageMappings,
if (captionLanguageSetting != null)
'captionLanguageSetting': captionLanguageSetting.toValue(),
if (clientCache != null) 'clientCache': clientCache.toValue(),
if (codecSpecification != null)
'codecSpecification': codecSpecification.toValue(),
if (destination != null) 'destination': destination,
if (destinationSettings != null)
'destinationSettings': destinationSettings,
if (directoryStructure != null)
'directoryStructure': directoryStructure.toValue(),
if (encryption != null) 'encryption': encryption,
if (manifestCompression != null)
'manifestCompression': manifestCompression.toValue(),
if (manifestDurationFormat != null)
'manifestDurationFormat': manifestDurationFormat.toValue(),
if (minFinalSegmentLength != null)
'minFinalSegmentLength': minFinalSegmentLength,
if (minSegmentLength != null) 'minSegmentLength': minSegmentLength,
if (outputSelection != null) 'outputSelection': outputSelection.toValue(),
if (programDateTime != null) 'programDateTime': programDateTime.toValue(),
if (programDateTimePeriod != null)
'programDateTimePeriod': programDateTimePeriod,
if (segmentControl != null) 'segmentControl': segmentControl.toValue(),
if (segmentLength != null) 'segmentLength': segmentLength,
if (segmentsPerSubdirectory != null)
'segmentsPerSubdirectory': segmentsPerSubdirectory,
if (streamInfResolution != null)
'streamInfResolution': streamInfResolution.toValue(),
if (timedMetadataId3Frame != null)
'timedMetadataId3Frame': timedMetadataId3Frame.toValue(),
if (timedMetadataId3Period != null)
'timedMetadataId3Period': timedMetadataId3Period,
if (timestampDeltaMilliseconds != null)
'timestampDeltaMilliseconds': timestampDeltaMilliseconds,
};
}