toJson method

Map<String, dynamic> toJson()

Implementation

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