toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adMarkers = this.adMarkers;
  final authenticationScheme = this.authenticationScheme;
  final cacheFullBehavior = this.cacheFullBehavior;
  final cacheLength = this.cacheLength;
  final captionData = this.captionData;
  final inputLossAction = this.inputLossAction;
  final restartDelay = this.restartDelay;
  return {
    if (adMarkers != null)
      'adMarkers': adMarkers.map((e) => e.toValue()).toList(),
    if (authenticationScheme != null)
      'authenticationScheme': authenticationScheme.toValue(),
    if (cacheFullBehavior != null)
      'cacheFullBehavior': cacheFullBehavior.toValue(),
    if (cacheLength != null) 'cacheLength': cacheLength,
    if (captionData != null) 'captionData': captionData.toValue(),
    if (inputLossAction != null) 'inputLossAction': inputLossAction.toValue(),
    if (restartDelay != null) 'restartDelay': restartDelay,
  };
}