executeObjectFunction<T extends ParseObject> method
Executes a cloud function that returns a ParseObject type
To add the parameters, create an object and call set(value to set)
Implementation
Future<ParseResponse> executeObjectFunction<T extends ParseObject>(
{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<T>(this, result,
ParseApiRQ.executeObjectionFunction, _debug, parseClassName);
} on Exception catch (e) {
return handleException(
e, ParseApiRQ.executeObjectionFunction, _debug, parseClassName);
}
}