Listener.fromJson constructor
Listener.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Listener.fromJson(Map<String, dynamic> json) {
return Listener(
portMapping:
PortMapping.fromJson(json['portMapping'] as Map<String, dynamic>),
connectionPool: json['connectionPool'] != null
? VirtualNodeConnectionPool.fromJson(
json['connectionPool'] as Map<String, dynamic>)
: null,
healthCheck: json['healthCheck'] != null
? HealthCheckPolicy.fromJson(
json['healthCheck'] as Map<String, dynamic>)
: null,
outlierDetection: json['outlierDetection'] != null
? OutlierDetection.fromJson(
json['outlierDetection'] as Map<String, dynamic>)
: null,
timeout: json['timeout'] != null
? ListenerTimeout.fromJson(json['timeout'] as Map<String, dynamic>)
: null,
tls: json['tls'] != null
? ListenerTls.fromJson(json['tls'] as Map<String, dynamic>)
: null,
);
}