HttpRetryPolicy.fromJson constructor

HttpRetryPolicy.fromJson(
  1. Map json_
)

Implementation

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