InviteCode class

Available extensions
Annotations
  • @freezed

Constructors

InviteCode.new({@Default(comAtprotoServerDefsInviteCode) @JsonKey(name: r'$type') 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, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
InviteCode.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
available int
no setterinherited
code String
no setterinherited
copyWith → $InviteCodeCopyWith<InviteCode>
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
hasNotUnknown bool

Available on InviteCode, provided by the $InviteCodeExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasUnknown bool

Available on InviteCode, provided by the $InviteCodeExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited