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