SurvicateAnswerModel.fromMap constructor
SurvicateAnswerModel.fromMap(
- dynamic survicateAnswerMap
Expect that there might be answer objects that consist only of the type property.
Implementation
SurvicateAnswerModel.fromMap(dynamic survicateAnswerMap)
: type = survicateAnswerMap['type'],
id = survicateAnswerMap['id'],
ids = survicateAnswerMap['ids'] != null
? List<int>.from(survicateAnswerMap['ids'])
: null,
value = survicateAnswerMap['value'];