UserAnswersDTO

fun UserAnswersDTO(    associatedWorkBookId: String,     answersDetailsMap: List<Map<String, String>>,     marksObtainedForWorkBook: String)

Parameters

associatedWorkBookId

the id of the workbook associated with the UserAnswers object.

answersDetailsMap

a map with custom objects as keys are not supported. Only strings are supported. Therefore, it is not possible to use Map for answers. To accommodate for that, a list of maps are used to store the details of the each answer. A map in the list consists of the details of a particular mcq question.