toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (choiceQuestion != null) 'choiceQuestion': choiceQuestion!,
      if (dateQuestion != null) 'dateQuestion': dateQuestion!,
      if (fileUploadQuestion != null)
        'fileUploadQuestion': fileUploadQuestion!,
      if (grading != null) 'grading': grading!,
      if (questionId != null) 'questionId': questionId!,
      if (required != null) 'required': required!,
      if (rowQuestion != null) 'rowQuestion': rowQuestion!,
      if (scaleQuestion != null) 'scaleQuestion': scaleQuestion!,
      if (textQuestion != null) 'textQuestion': textQuestion!,
      if (timeQuestion != null) 'timeQuestion': timeQuestion!,
    };