toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final additionalManifests = this.additionalManifests;
  final baseUrl = this.baseUrl;
  final clientCache = this.clientCache;
  final codecSpecification = this.codecSpecification;
  final destination = this.destination;
  final destinationSettings = this.destinationSettings;
  final encryption = this.encryption;
  final fragmentLength = this.fragmentLength;
  final manifestCompression = this.manifestCompression;
  final manifestDurationFormat = this.manifestDurationFormat;
  final minBufferTime = this.minBufferTime;
  final minFinalSegmentLength = this.minFinalSegmentLength;
  final mpdProfile = this.mpdProfile;
  final segmentControl = this.segmentControl;
  final segmentLength = this.segmentLength;
  final streamInfResolution = this.streamInfResolution;
  final writeDashManifest = this.writeDashManifest;
  final writeHlsManifest = this.writeHlsManifest;
  final writeSegmentTimelineInRepresentation =
      this.writeSegmentTimelineInRepresentation;
  return {
    if (additionalManifests != null)
      'additionalManifests': additionalManifests,
    if (baseUrl != null) 'baseUrl': baseUrl,
    if (clientCache != null) 'clientCache': clientCache.toValue(),
    if (codecSpecification != null)
      'codecSpecification': codecSpecification.toValue(),
    if (destination != null) 'destination': destination,
    if (destinationSettings != null)
      'destinationSettings': destinationSettings,
    if (encryption != null) 'encryption': encryption,
    if (fragmentLength != null) 'fragmentLength': fragmentLength,
    if (manifestCompression != null)
      'manifestCompression': manifestCompression.toValue(),
    if (manifestDurationFormat != null)
      'manifestDurationFormat': manifestDurationFormat.toValue(),
    if (minBufferTime != null) 'minBufferTime': minBufferTime,
    if (minFinalSegmentLength != null)
      'minFinalSegmentLength': minFinalSegmentLength,
    if (mpdProfile != null) 'mpdProfile': mpdProfile.toValue(),
    if (segmentControl != null) 'segmentControl': segmentControl.toValue(),
    if (segmentLength != null) 'segmentLength': segmentLength,
    if (streamInfResolution != null)
      'streamInfResolution': streamInfResolution.toValue(),
    if (writeDashManifest != null)
      'writeDashManifest': writeDashManifest.toValue(),
    if (writeHlsManifest != null)
      'writeHlsManifest': writeHlsManifest.toValue(),
    if (writeSegmentTimelineInRepresentation != null)
      'writeSegmentTimelineInRepresentation':
          writeSegmentTimelineInRepresentation.toValue(),
  };
}