responseToMap method
Implementation
Map<String, dynamic> responseToMap() {
Map<String, dynamic> values = {};
for (int i = 0; i < widget.form.fields.length; i++) {
String key = widget.form.fields[i].name;
values[key] = _controllers[i].text;
}
return {'form': widget.form.name, 'values': values};
}