getFromData function
Implementation
List<dynamic> getFromData(RequestOptions options) {
final fields = [];
if (options.data.fields.isNotEmpty == true) {
options.data.fields.forEach((entry) {
fields.add({
entry.key: entry.value,
});
});
options.data.request.formDataFields = fields;
return fields;
} else {
return fields;
}
}