Project class abstract
Represents a project of a tenant. Typically a serverpod project.
- Implemented types
Constructors
-
Project.new({int? id, DateTime? createdAt, DateTime? updatedAt, DateTime? archivedAt, required String cloudProjectId, required UuidValue ownerId, Owner? owner, Subscription? subscription, List<
Role> ? roles, List<Capsule> ? capsules}) -
factory
-
Project.fromJson(Map<
String, dynamic> jsonSerialization) -
factory
Properties
- archivedAt ↔ DateTime?
-
getter/setter pair
-
capsules
↔ List<
Capsule> ? -
The capsules belonging to this project.
getter/setter pair
- cloudProjectId ↔ String
-
The id of the project, which is also its name.
This must be globally unique.
This is the default production name of the project.
getter/setter pair
- createdAt ↔ DateTime
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
The database id, set if the object has been inserted into the
database or if it has been fetched from the database. Otherwise,
the id will be null.
getter/setter pair
- owner ↔ Owner?
-
The owner of the project.
getter/setter pair
- ownerId ↔ UuidValue
-
The id of the owner of the project.
getter/setter pair
-
roles
↔ List<
Role> ? -
The roles for this project.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription ↔ Subscription?
-
The subscription for this project.
DEPRECATED, will likely be removed
getter/setter pair
- updatedAt ↔ DateTime
-
getter/setter pair
Methods
-
copyWith(
{int? id, DateTime? createdAt, DateTime? updatedAt, DateTime? archivedAt, String? cloudProjectId, UuidValue? ownerId, Owner? owner, Subscription? subscription, List< Role> ? roles, List<Capsule> ? capsules}) → Project - Returns a shallow copy of this Project with some or all fields replaced by the given arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited