toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final connectionBorrowTimeout = this.connectionBorrowTimeout;
  final initQuery = this.initQuery;
  final maxConnectionsPercent = this.maxConnectionsPercent;
  final maxIdleConnectionsPercent = this.maxIdleConnectionsPercent;
  final sessionPinningFilters = this.sessionPinningFilters;
  return {
    if (connectionBorrowTimeout != null)
      'ConnectionBorrowTimeout': connectionBorrowTimeout,
    if (initQuery != null) 'InitQuery': initQuery,
    if (maxConnectionsPercent != null)
      'MaxConnectionsPercent': maxConnectionsPercent,
    if (maxIdleConnectionsPercent != null)
      'MaxIdleConnectionsPercent': maxIdleConnectionsPercent,
    if (sessionPinningFilters != null)
      'SessionPinningFilters': sessionPinningFilters,
  };
}