toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final additionalManifests = this.additionalManifests;
  final baseUrl = this.baseUrl;
  final destination = this.destination;
  final destinationSettings = this.destinationSettings;
  final encryption = this.encryption;
  final fragmentLength = this.fragmentLength;
  final hbbtvCompliance = this.hbbtvCompliance;
  final minBufferTime = this.minBufferTime;
  final minFinalSegmentLength = this.minFinalSegmentLength;
  final mpdProfile = this.mpdProfile;
  final segmentControl = this.segmentControl;
  final segmentLength = this.segmentLength;
  final writeSegmentTimelineInRepresentation =
      this.writeSegmentTimelineInRepresentation;
  return {
    if (additionalManifests != null)
      'additionalManifests': additionalManifests,
    if (baseUrl != null) 'baseUrl': baseUrl,
    if (destination != null) 'destination': destination,
    if (destinationSettings != null)
      'destinationSettings': destinationSettings,
    if (encryption != null) 'encryption': encryption,
    if (fragmentLength != null) 'fragmentLength': fragmentLength,
    if (hbbtvCompliance != null) 'hbbtvCompliance': hbbtvCompliance.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 (writeSegmentTimelineInRepresentation != null)
      'writeSegmentTimelineInRepresentation':
          writeSegmentTimelineInRepresentation.toValue(),
  };
}