toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final additionalManifests = this.additionalManifests;
  final audioDeduplication = this.audioDeduplication;
  final destination = this.destination;
  final destinationSettings = this.destinationSettings;
  final encryption = this.encryption;
  final fragmentLength = this.fragmentLength;
  final manifestEncoding = this.manifestEncoding;
  return {
    if (additionalManifests != null)
      'additionalManifests': additionalManifests,
    if (audioDeduplication != null)
      'audioDeduplication': audioDeduplication.toValue(),
    if (destination != null) 'destination': destination,
    if (destinationSettings != null)
      'destinationSettings': destinationSettings,
    if (encryption != null) 'encryption': encryption,
    if (fragmentLength != null) 'fragmentLength': fragmentLength,
    if (manifestEncoding != null)
      'manifestEncoding': manifestEncoding.toValue(),
  };
}