toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['fields'] = type == "text" ? "300" : this.fields.toString();
  data['_id'] = this.sId;
  data['title'] = this.title;
  data['description'] = this.description;
  data['remark'] = this.remark;
  data["remark_data"] = this.remarkData;
  data['type'] = this.type;
  data['is_mandatory'] = this.isMandatory;
  data["maxline"] = this.maxline;
  data["answer"] = this.answer.toString();

  return data;
}