HTTPRetry.fromJson constructor

HTTPRetry.fromJson(
  1. Map<String, dynamic> json
)

Creates a HTTPRetry from JSON data.

Implementation

HTTPRetry.fromJson(Map<String, dynamic> json)
    : this(
        attempts: json['attempts'],
        perTryTimeout: json['perTryTimeout'] != null
            ? parseDuration(json['perTryTimeout'])
            : null,
        retryOn: json['retryOn'],
        retryRemoteLocalities: json['retryRemoteLocalities'],
      );