VirtualGatewayListener.fromJson constructor

VirtualGatewayListener.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory VirtualGatewayListener.fromJson(Map<String, dynamic> json) {
  return VirtualGatewayListener(
    portMapping: VirtualGatewayPortMapping.fromJson(
        json['portMapping'] as Map<String, dynamic>),
    connectionPool: json['connectionPool'] != null
        ? VirtualGatewayConnectionPool.fromJson(
            json['connectionPool'] as Map<String, dynamic>)
        : null,
    healthCheck: json['healthCheck'] != null
        ? VirtualGatewayHealthCheckPolicy.fromJson(
            json['healthCheck'] as Map<String, dynamic>)
        : null,
    tls: json['tls'] != null
        ? VirtualGatewayListenerTls.fromJson(
            json['tls'] as Map<String, dynamic>)
        : null,
  );
}