VirtualNodeConnectionPool.fromJson constructor

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

Implementation

factory VirtualNodeConnectionPool.fromJson(Map<String, dynamic> json) {
  return VirtualNodeConnectionPool(
    grpc: json['grpc'] != null
        ? VirtualNodeGrpcConnectionPool.fromJson(
            json['grpc'] as Map<String, dynamic>)
        : null,
    http: json['http'] != null
        ? VirtualNodeHttpConnectionPool.fromJson(
            json['http'] as Map<String, dynamic>)
        : null,
    http2: json['http2'] != null
        ? VirtualNodeHttp2ConnectionPool.fromJson(
            json['http2'] as Map<String, dynamic>)
        : null,
    tcp: json['tcp'] != null
        ? VirtualNodeTcpConnectionPool.fromJson(
            json['tcp'] as Map<String, dynamic>)
        : null,
  );
}