factory AttemptError.fromJson(Map<String, Object?> json) => AttemptError(message: json["message"] as String);