InviteCode class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
InviteCode.new({@Default('com.atproto.server.defs#inviteCode') String $type, required String code, required int available, required bool disabled, required String forAccount, required String createdBy, required DateTime createdAt, @InviteCodeUseConverter() required List<
InviteCodeUse> uses, Map<String, dynamic> ? $unknown}) -
constfactory
-
InviteCode.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- available → 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
- disabled → bool
-
no setterinherited
- forAccount → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisabled → bool
-
Available on InviteCode, provided by the InviteCodeExtension extension
no setter - isNotDisabled → bool
-
Available on InviteCode, provided by the InviteCodeExtension extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uses
→ List<
InviteCodeUse> -
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_InviteCode value)) → TResult -
Available on InviteCode, provided by the InviteCodePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_InviteCode value)?) → TResult? -
Available on InviteCode, provided by the InviteCodePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_InviteCode value)?, {required TResult orElse()}) → TResult -
Available on InviteCode, provided by the InviteCodePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String code, int available, bool disabled, String forAccount, String createdBy, DateTime createdAt, List< InviteCodeUse> uses, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on InviteCode, provided by the InviteCodePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
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
-
when<
TResult extends Object?> (TResult $default(String $type, String code, int available, bool disabled, String forAccount, String createdBy, DateTime createdAt, List< InviteCodeUse> uses, Map<String, dynamic> ? $unknown)) → TResult -
Available on InviteCode, provided by the InviteCodePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String code, int available, bool disabled, String forAccount, String createdBy, DateTime createdAt, List< InviteCodeUse> uses, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on InviteCode, provided by the InviteCodePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>