Question.fromJson constructor

Question.fromJson(
  1. Map json_
)

Implementation

Question.fromJson(core.Map json_)
    : this(
        choiceQuestion: json_.containsKey('choiceQuestion')
            ? ChoiceQuestion.fromJson(json_['choiceQuestion']
                as core.Map<core.String, core.dynamic>)
            : null,
        dateQuestion: json_.containsKey('dateQuestion')
            ? DateQuestion.fromJson(
                json_['dateQuestion'] as core.Map<core.String, core.dynamic>)
            : null,
        fileUploadQuestion: json_.containsKey('fileUploadQuestion')
            ? FileUploadQuestion.fromJson(json_['fileUploadQuestion']
                as core.Map<core.String, core.dynamic>)
            : null,
        grading: json_.containsKey('grading')
            ? Grading.fromJson(
                json_['grading'] as core.Map<core.String, core.dynamic>)
            : null,
        questionId: json_.containsKey('questionId')
            ? json_['questionId'] as core.String
            : null,
        required: json_.containsKey('required')
            ? json_['required'] as core.bool
            : null,
        rowQuestion: json_.containsKey('rowQuestion')
            ? RowQuestion.fromJson(
                json_['rowQuestion'] as core.Map<core.String, core.dynamic>)
            : null,
        scaleQuestion: json_.containsKey('scaleQuestion')
            ? ScaleQuestion.fromJson(
                json_['scaleQuestion'] as core.Map<core.String, core.dynamic>)
            : null,
        textQuestion: json_.containsKey('textQuestion')
            ? TextQuestion.fromJson(
                json_['textQuestion'] as core.Map<core.String, core.dynamic>)
            : null,
        timeQuestion: json_.containsKey('timeQuestion')
            ? TimeQuestion.fromJson(
                json_['timeQuestion'] as core.Map<core.String, core.dynamic>)
            : null,
      );