toJson method

Map<String, dynamic> toJson()

Implementation

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