CircuitBreakers.fromJson constructor

CircuitBreakers.fromJson(
  1. Map json_
)

Implementation

CircuitBreakers.fromJson(core.Map json_)
    : this(
        maxConnections: json_.containsKey('maxConnections')
            ? json_['maxConnections'] as core.int
            : null,
        maxPendingRequests: json_.containsKey('maxPendingRequests')
            ? json_['maxPendingRequests'] as core.int
            : null,
        maxRequests: json_.containsKey('maxRequests')
            ? json_['maxRequests'] as core.int
            : null,
        maxRequestsPerConnection:
            json_.containsKey('maxRequestsPerConnection')
                ? json_['maxRequestsPerConnection'] as core.int
                : null,
        maxRetries: json_.containsKey('maxRetries')
            ? json_['maxRetries'] as core.int
            : null,
      );