fetch method
Fetches this object with the data from the server.
Call this whenever you want the state of the object to reflect exactly what is on the server.
include
, is a list of ParseObjects keys to be included directly and
not as a pointer.
Implementation
Future<ParseObject> fetch({List<String>? include}) async {
if (objectId == null || objectId!.isEmpty) {
throw 'can not fetch without a objectId';
}
final ParseResponse response = await getObject(objectId!, include: include);
if (response.success && response.results != null) {
return response.results!.first;
} else {
return this;
}
}