InviteCode class
- Annotations
-
- @freezed
Constructors
-
InviteCode({required String code, @JsonKey(name: 'available') @Default(0) int availableCount, @JsonKey(name: 'disabled') @Default(false) bool isDisabled, required String forAccount, required List<
InviteCodeUse> uses, required String createdBy, required DateTime createdAt}) -
constfactory
-
InviteCode.fromJson(Map<
String, Object?> json) -
A factory method that creates an InviteCode instance from a JSON map.
factory
Properties
- availableCount → int
-
no setterinherited
- code → String
-
no setterinherited
-
copyWith
→ $InviteCodeCopyWith<
InviteCode> -
Create a copy of InviteCode
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
- createdBy → String
-
no setterinherited
- forAccount → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisabled → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uses
→ List<
InviteCodeUse> -
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this InviteCode to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited