ParseObject constructor

ParseObject(
  1. String className,
  2. {bool? debug,
  3. ParseClient? client,
  4. bool? autoSendSessionId}
)

Creates a new Parse Object

className, refers to the Table Name in your Parse Server

debug, will overwrite the current default debug settings

client, can be overwritten to create your own HTTP Client

Implementation

ParseObject(
  String className, {
  bool? debug,
  ParseClient? client,
  bool? autoSendSessionId,
}) : super() {
  parseClassName = className;
  _path = '$keyEndPointClasses$className';
  _aggregatepath = '$keyEndPointAggregate$className';

  _debug = isDebugEnabled(objectLevelDebug: debug);
  _client = client ??
      ParseCoreData().clientCreator(
          sendSessionId:
              autoSendSessionId ?? ParseCoreData().autoSendSessionId,
          securityContext: ParseCoreData().securityContext);
}