matrixDropdownColumnToQuestion function
Implementation
s.Question matrixDropdownColumnToQuestion(
s.Matrixdropdownbase dropdown, s.Matrixdropdowncolumn column) {
final encoded = s.surveySerializers
.serializeWith(s.Matrixdropdowncolumn.serializer, column);
final json = encoded as Map<String, Object?>;
json["type"] = column.cellType?.toString() ?? "dropdown";
if (!json.containsKey('choices')) {
json['choices'] = s.surveySerializers.serialize(dropdown.choices,
specifiedType: const FullType(
BuiltList,
[FullType(s.MatrixdropdownbaseAllOfChoicesInner)],
));
}
s.Question? res = s.surveySerializers
.deserializeWith<s.SurveyQuestionsInner>(
s.SurveyQuestionsInner.serializer, encoded)
?.realElement as s.Question?;
return res!;
}