toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'title'] = this.title;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.answerType != null) {
    json[r'answer_type'] = this.answerType;
  } else {
    json[r'answer_type'] = null;
  }
    json[r'options'] = this.options;
  return json;
}