toJson method
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;
final salt = this.salt;
final token = this.token;
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,
if (salt != null) 'salt': salt,
if (token != null) 'token': token,
};
}