// // QuizModel.swift // LMS // // Created by Suraj Kumar Mandal on 21/09/22. // // let quizModel = try? newJSONDecoder().decode(QuizModel.self, from: jsonData) import Foundation // MARK: - QuizModel class QuizModel: Codable { var id, assessmentId: Int? var srNo, questionType, question: String? var optionsOne, optionsTwo, options, correctMatch: [String]? var marks, negativeMarks, timeInMinutes, status: String? init(id: Int?, assessmentId: Int?, srNo: String?, questionType: String?, question: String?, options: [String]?, optionsOne: [String]?, optionsTwo: [String]?, correctMatch: [String]?, marks: String?, negativeMarks: String?, timeInMinutes: String?, status: String?) { self.id = id self.assessmentId = assessmentId self.srNo = srNo self.questionType = questionType self.question = question self.options = options self.optionsOne = optionsOne self.optionsTwo = optionsTwo self.correctMatch = correctMatch self.marks = marks self.negativeMarks = negativeMarks self.timeInMinutes = timeInMinutes self.status = status } }