toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destination = this.destination;
  final acquisitionPointId = this.acquisitionPointId;
  final audioOnlyTimecodeControl = this.audioOnlyTimecodeControl;
  final certificateMode = this.certificateMode;
  final connectionRetryInterval = this.connectionRetryInterval;
  final eventId = this.eventId;
  final eventIdMode = this.eventIdMode;
  final eventStopBehavior = this.eventStopBehavior;
  final filecacheDuration = this.filecacheDuration;
  final fragmentLength = this.fragmentLength;
  final inputLossAction = this.inputLossAction;
  final numRetries = this.numRetries;
  final restartDelay = this.restartDelay;
  final segmentationMode = this.segmentationMode;
  final sendDelayMs = this.sendDelayMs;
  final sparseTrackType = this.sparseTrackType;
  final streamManifestBehavior = this.streamManifestBehavior;
  final timestampOffset = this.timestampOffset;
  final timestampOffsetMode = this.timestampOffsetMode;
  return {
    'destination': destination,
    if (acquisitionPointId != null) 'acquisitionPointId': acquisitionPointId,
    if (audioOnlyTimecodeControl != null)
      'audioOnlyTimecodeControl': audioOnlyTimecodeControl.toValue(),
    if (certificateMode != null) 'certificateMode': certificateMode.toValue(),
    if (connectionRetryInterval != null)
      'connectionRetryInterval': connectionRetryInterval,
    if (eventId != null) 'eventId': eventId,
    if (eventIdMode != null) 'eventIdMode': eventIdMode.toValue(),
    if (eventStopBehavior != null)
      'eventStopBehavior': eventStopBehavior.toValue(),
    if (filecacheDuration != null) 'filecacheDuration': filecacheDuration,
    if (fragmentLength != null) 'fragmentLength': fragmentLength,
    if (inputLossAction != null) 'inputLossAction': inputLossAction.toValue(),
    if (numRetries != null) 'numRetries': numRetries,
    if (restartDelay != null) 'restartDelay': restartDelay,
    if (segmentationMode != null)
      'segmentationMode': segmentationMode.toValue(),
    if (sendDelayMs != null) 'sendDelayMs': sendDelayMs,
    if (sparseTrackType != null) 'sparseTrackType': sparseTrackType.toValue(),
    if (streamManifestBehavior != null)
      'streamManifestBehavior': streamManifestBehavior.toValue(),
    if (timestampOffset != null) 'timestampOffset': timestampOffset,
    if (timestampOffsetMode != null)
      'timestampOffsetMode': timestampOffsetMode.toValue(),
  };
}