// // AssessmentResultModel.swift // LMS // // Created by Suraj Kumar Mandal on 20/10/23. // import Foundation // MARK: - AssessmentResultModel class AssessmentResultModel: Codable { var asnId: JSONNull? var question: String? var selectedAnswers, answers: [String]? var questionType: QuestionType? var options: [String]? var optionsOne, optionsTwo: [String]? init(asnId: JSONNull?, question: String?, selectedAnswers: [String]?, answers: [String]?, questionType: QuestionType?, options: [String]?, optionsOne: [String]?, optionsTwo: [String]?) { self.asnId = asnId self.question = question self.selectedAnswers = selectedAnswers self.answers = answers self.questionType = questionType self.options = options self.optionsOne = optionsOne self.optionsTwo = optionsTwo } } enum QuestionType: String, Codable { case singleSelectMCQ = "Single select MCQ" } typealias AssessmentResult = [AssessmentResultModel]