public override Questions GetQuestionsForQuizz(object quizzId) { string json_quizzes_with_questions_with_answers = NetworkRequestManager.HttpGetRequest(apiQuestionsUrl); CheckIfNullAndLog(json_quizzes_with_questions_with_answers, $"[WARNING]: Response for {GetActualMethodName()} is null"); DardiNestedApiModel.QuizzesInAPI quizzesData = JsonUtility.FromJson <DardiNestedApiModel.QuizzesInAPI>(json_quizzes_with_questions_with_answers); Questions questions = new Questions(); foreach (QuizzInAPI quizzData in quizzesData.quizzes) { if (quizzData.id.ToString() == quizzId.ToString()) { foreach (QuestionInAPI questionData in quizzData.questions) { questionData.MapAPIValuesToAbstractClass(); questions.AddQuestion(questionData); } return(questions); } } return(null); }