checkIfTheQuestionHasAFeedBack function

dynamic checkIfTheQuestionHasAFeedBack(
  1. dynamic question
)

Implementation

checkIfTheQuestionHasAFeedBack(question) {
  if (question['properties'] != null &&
      question['properties']['data'] != null &&
      question['properties']['data']['includeFeedback'] != null) {
    return question['properties']['data']['includeFeedback'];
  }
  return false;
}