SurvicateAnswerModel.fromMap constructor

SurvicateAnswerModel.fromMap(
  1. 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'];