Invitation class
Constructors
- Invitation({required String id, required String email, required InvitationRoleEnum role, required String status, required DateTime expiresAt, required String organizationName})
- Returns a new Invitation instance.
Properties
- email ↔ String
-
Invitee email
getter/setter pair
- expiresAt ↔ DateTime
-
Expiration timestamp
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String
-
Invitation ID
getter/setter pair
- organizationName ↔ String
-
Organization name
getter/setter pair
- role ↔ InvitationRoleEnum
-
Role to assign
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String
-
Invitation status
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → Invitation? -
Returns a new Invitation instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Invitation> -
mapFromJson(
dynamic json) → Map< String, Invitation> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Invitation> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.