getObject method
Gets an object from the server using it's String objectId
List<String>
include refers to other ParseObjects stored as a Pointer
Implementation
Future<ParseResponse> getObject(String objectId,
{List<String>? include}) async {
try {
String? query;
if (include != null) {
query = 'include=${concatenateArray(include)}';
}
final Uri url =
getSanitisedUri(_client, '$_path/$objectId', query: query);
final ParseNetworkResponse result = await _client.get(url.toString());
return handleResponse<ParseObject>(
this, result, ParseApiRQ.get, _debug, parseClassName);
} on Exception catch (e) {
return handleException(e, ParseApiRQ.get, _debug, parseClassName);
}
}