ListenerTimeout.fromJson constructor

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

Implementation

factory ListenerTimeout.fromJson(Map<String, dynamic> json) {
  return ListenerTimeout(
    grpc: json['grpc'] != null
        ? GrpcTimeout.fromJson(json['grpc'] as Map<String, dynamic>)
        : null,
    http: json['http'] != null
        ? HttpTimeout.fromJson(json['http'] as Map<String, dynamic>)
        : null,
    http2: json['http2'] != null
        ? HttpTimeout.fromJson(json['http2'] as Map<String, dynamic>)
        : null,
    tcp: json['tcp'] != null
        ? TcpTimeout.fromJson(json['tcp'] as Map<String, dynamic>)
        : null,
  );
}