HttpRouteRetryPolicy.fromJson constructor

HttpRouteRetryPolicy.fromJson(
  1. Map json_
)

Implementation

HttpRouteRetryPolicy.fromJson(core.Map json_)
    : this(
        numRetries: json_.containsKey('numRetries')
            ? json_['numRetries'] as core.int
            : null,
        perTryTimeout: json_.containsKey('perTryTimeout')
            ? json_['perTryTimeout'] as core.String
            : null,
        retryConditions: json_.containsKey('retryConditions')
            ? (json_['retryConditions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );