execute method
Executes a cloud function
To add the parameters, create an object and call set(value to set)
Implementation
Future<ParseResponse> execute(
{Map<String, dynamic>? parameters, Map<String, String>? headers}) async {
final String uri = '${ParseCoreData().serverUrl}$_path';
if (parameters != null) {
_setObjectData(parameters);
}
try {
final ParseNetworkResponse result = await _client.post(uri,
options: ParseNetworkOptions(headers: headers),
data: json.encode(_getObjectData()));
return handleResponse<ParseCloudFunction>(
this, result, ParseApiRQ.execute, _debug, parseClassName);
} on Exception catch (e) {
return handleException(e, ParseApiRQ.execute, _debug, parseClassName);
}
}