RetryConfig.fromJson constructor

RetryConfig.fromJson(
  1. Map json_
)

Implementation

RetryConfig.fromJson(core.Map json_)
    : this(
        maxAttempts: json_.containsKey('maxAttempts')
            ? json_['maxAttempts'] as core.int
            : null,
        maxBackoff: json_.containsKey('maxBackoff')
            ? json_['maxBackoff'] as core.String
            : null,
        maxDoublings: json_.containsKey('maxDoublings')
            ? json_['maxDoublings'] as core.int
            : null,
        maxRetryDuration: json_.containsKey('maxRetryDuration')
            ? json_['maxRetryDuration'] as core.String
            : null,
        minBackoff: json_.containsKey('minBackoff')
            ? json_['minBackoff'] as core.String
            : null,
      );