InviteCode constructor
- @JsonSerializable(includeIfNull: false)
const
InviteCode(
{ - @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,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory InviteCode({
/// The unique namespace for this lex object.
///
/// `com.atproto.server.defs#inviteCode`
@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,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _InviteCode;