create method
Creates a new object and saves it online
Implementation
Future<ParseResponse> create({bool allowCustomObjectId = false}) async {
try {
final Uri url = getSanitisedUri(_client, _path);
final String body = json.encode(toJson(
forApiRQ: true,
allowCustomObjectId: allowCustomObjectId,
));
_saveChanges();
final ParseNetworkResponse result =
await _client.post(url.toString(), data: body);
return handleResponse<ParseObject>(
this, result, ParseApiRQ.create, _debug, parseClassName);
} on Exception catch (e) {
return handleException(e, ParseApiRQ.create, _debug, parseClassName);
}
}