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