RetryStrategy.fromJson constructor

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

Implementation

factory RetryStrategy.fromJson(Map<String, dynamic> json) {
  return RetryStrategy(
    attempts: json['attempts'] as int?,
    evaluateOnExit: (json['evaluateOnExit'] as List?)
        ?.whereNotNull()
        .map((e) => EvaluateOnExit.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}