toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destination = this.destination;
  final adMarkers = this.adMarkers;
  final baseUrlContent = this.baseUrlContent;
  final baseUrlContent1 = this.baseUrlContent1;
  final baseUrlManifest = this.baseUrlManifest;
  final baseUrlManifest1 = this.baseUrlManifest1;
  final captionLanguageMappings = this.captionLanguageMappings;
  final captionLanguageSetting = this.captionLanguageSetting;
  final clientCache = this.clientCache;
  final codecSpecification = this.codecSpecification;
  final constantIv = this.constantIv;
  final directoryStructure = this.directoryStructure;
  final discontinuityTags = this.discontinuityTags;
  final encryptionType = this.encryptionType;
  final hlsCdnSettings = this.hlsCdnSettings;
  final hlsId3SegmentTagging = this.hlsId3SegmentTagging;
  final iFrameOnlyPlaylists = this.iFrameOnlyPlaylists;
  final incompleteSegmentBehavior = this.incompleteSegmentBehavior;
  final indexNSegments = this.indexNSegments;
  final inputLossAction = this.inputLossAction;
  final ivInManifest = this.ivInManifest;
  final ivSource = this.ivSource;
  final keepSegments = this.keepSegments;
  final keyFormat = this.keyFormat;
  final keyFormatVersions = this.keyFormatVersions;
  final keyProviderSettings = this.keyProviderSettings;
  final manifestCompression = this.manifestCompression;
  final manifestDurationFormat = this.manifestDurationFormat;
  final minSegmentLength = this.minSegmentLength;
  final mode = this.mode;
  final outputSelection = this.outputSelection;
  final programDateTime = this.programDateTime;
  final programDateTimePeriod = this.programDateTimePeriod;
  final redundantManifest = this.redundantManifest;
  final segmentLength = this.segmentLength;
  final segmentationMode = this.segmentationMode;
  final segmentsPerSubdirectory = this.segmentsPerSubdirectory;
  final streamInfResolution = this.streamInfResolution;
  final timedMetadataId3Frame = this.timedMetadataId3Frame;
  final timedMetadataId3Period = this.timedMetadataId3Period;
  final timestampDeltaMilliseconds = this.timestampDeltaMilliseconds;
  final tsFileMode = this.tsFileMode;
  return {
    'destination': destination,
    if (adMarkers != null)
      'adMarkers': adMarkers.map((e) => e.toValue()).toList(),
    if (baseUrlContent != null) 'baseUrlContent': baseUrlContent,
    if (baseUrlContent1 != null) 'baseUrlContent1': baseUrlContent1,
    if (baseUrlManifest != null) 'baseUrlManifest': baseUrlManifest,
    if (baseUrlManifest1 != null) 'baseUrlManifest1': baseUrlManifest1,
    if (captionLanguageMappings != null)
      'captionLanguageMappings': captionLanguageMappings,
    if (captionLanguageSetting != null)
      'captionLanguageSetting': captionLanguageSetting.toValue(),
    if (clientCache != null) 'clientCache': clientCache.toValue(),
    if (codecSpecification != null)
      'codecSpecification': codecSpecification.toValue(),
    if (constantIv != null) 'constantIv': constantIv,
    if (directoryStructure != null)
      'directoryStructure': directoryStructure.toValue(),
    if (discontinuityTags != null)
      'discontinuityTags': discontinuityTags.toValue(),
    if (encryptionType != null) 'encryptionType': encryptionType.toValue(),
    if (hlsCdnSettings != null) 'hlsCdnSettings': hlsCdnSettings,
    if (hlsId3SegmentTagging != null)
      'hlsId3SegmentTagging': hlsId3SegmentTagging.toValue(),
    if (iFrameOnlyPlaylists != null)
      'iFrameOnlyPlaylists': iFrameOnlyPlaylists.toValue(),
    if (incompleteSegmentBehavior != null)
      'incompleteSegmentBehavior': incompleteSegmentBehavior.toValue(),
    if (indexNSegments != null) 'indexNSegments': indexNSegments,
    if (inputLossAction != null) 'inputLossAction': inputLossAction.toValue(),
    if (ivInManifest != null) 'ivInManifest': ivInManifest.toValue(),
    if (ivSource != null) 'ivSource': ivSource.toValue(),
    if (keepSegments != null) 'keepSegments': keepSegments,
    if (keyFormat != null) 'keyFormat': keyFormat,
    if (keyFormatVersions != null) 'keyFormatVersions': keyFormatVersions,
    if (keyProviderSettings != null)
      'keyProviderSettings': keyProviderSettings,
    if (manifestCompression != null)
      'manifestCompression': manifestCompression.toValue(),
    if (manifestDurationFormat != null)
      'manifestDurationFormat': manifestDurationFormat.toValue(),
    if (minSegmentLength != null) 'minSegmentLength': minSegmentLength,
    if (mode != null) 'mode': mode.toValue(),
    if (outputSelection != null) 'outputSelection': outputSelection.toValue(),
    if (programDateTime != null) 'programDateTime': programDateTime.toValue(),
    if (programDateTimePeriod != null)
      'programDateTimePeriod': programDateTimePeriod,
    if (redundantManifest != null)
      'redundantManifest': redundantManifest.toValue(),
    if (segmentLength != null) 'segmentLength': segmentLength,
    if (segmentationMode != null)
      'segmentationMode': segmentationMode.toValue(),
    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,
    if (tsFileMode != null) 'tsFileMode': tsFileMode.toValue(),
  };
}