toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final connectionRetryInterval = this.connectionRetryInterval;
  final filecacheDuration = this.filecacheDuration;
  final httpTransferMode = this.httpTransferMode;
  final numRetries = this.numRetries;
  final restartDelay = this.restartDelay;
  return {
    if (connectionRetryInterval != null)
      'connectionRetryInterval': connectionRetryInterval,
    if (filecacheDuration != null) 'filecacheDuration': filecacheDuration,
    if (httpTransferMode != null)
      'httpTransferMode': httpTransferMode.toValue(),
    if (numRetries != null) 'numRetries': numRetries,
    if (restartDelay != null) 'restartDelay': restartDelay,
  };
}