getObject method
Gets an object from the server using it's objectId
include
, is a list of ParseObjects keys to be included directly and
not 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);
}
}