getParseACL method

ParseACL? getParseACL()

Access a ParseACL value.

Returns null if there is no such key or if it is not a ParseACL.

Implementation

ParseACL? getParseACL() {
  final acl = get('ACL');
  if (acl == null) {
    return ParseACL();
  } else if (!(acl is ParseACL)) {
    throw Exception("only ACLs can be stored in the ACL key");
  }

  return acl;
}