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