Failure.fromJson constructor

Failure.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Failure.fromJson(Map<String, Object?> json) => Failure(
      detail: json["detail"] as String,
      reason: FailureReason.fromJson(json["reason"]),
      retryable: json["retryable"] as bool,
    );