toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final encryption = this.encryption;
  final manifestWindowSeconds = this.manifestWindowSeconds;
  final segmentDurationSeconds = this.segmentDurationSeconds;
  final streamSelection = this.streamSelection;
  return {
    if (encryption != null) 'encryption': encryption,
    if (manifestWindowSeconds != null)
      'manifestWindowSeconds': manifestWindowSeconds,
    if (segmentDurationSeconds != null)
      'segmentDurationSeconds': segmentDurationSeconds,
    if (streamSelection != null) 'streamSelection': streamSelection,
  };
}