toJson method
Implementation
Map<String, dynamic> toJson() {
final portMapping = this.portMapping;
final connectionPool = this.connectionPool;
final healthCheck = this.healthCheck;
final outlierDetection = this.outlierDetection;
final timeout = this.timeout;
final tls = this.tls;
return {
'portMapping': portMapping,
if (connectionPool != null) 'connectionPool': connectionPool,
if (healthCheck != null) 'healthCheck': healthCheck,
if (outlierDetection != null) 'outlierDetection': outlierDetection,
if (timeout != null) 'timeout': timeout,
if (tls != null) 'tls': tls,
};
}