toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final maxConnections = this.maxConnections;
  final maxPendingRequests = this.maxPendingRequests;
  return {
    'maxConnections': maxConnections,
    if (maxPendingRequests != null) 'maxPendingRequests': maxPendingRequests,
  };
}