List<String> defaultProperties

The list of default properties returned when querying an instance of this type.

By default, a Query will return all the properties named in this list. You may specify a different set of properties by setting the Query.returningProperties value. The default set of properties is a list of all attributes that do not have the ManagedColumnAttributes.shouldOmitByDefault flag set in their ManagedColumnAttributes and all ManagedRelationshipType.belongsTo relationships.

Source

List<String> get defaultProperties {
  if (_defaultProperties == null) {
    _defaultProperties = attributes.values
        .where((prop) => prop.isIncludedInDefaultResultSet)
        .where((prop) => !prop.isTransient)
        .map((prop) => prop.name)
        .toList();

    _defaultProperties.addAll(relationships.values
        .where((prop) =>
            prop.isIncludedInDefaultResultSet &&
            prop.relationshipType == ManagedRelationshipType.belongsTo)
        .map((prop) => prop.name)
        .toList());
  }
  return _defaultProperties;
}