InviteCode constructor

  1. @JsonSerializable(includeIfNull: false)
const InviteCode({
  1. @Default(comAtprotoServerDefsInviteCode) @JsonKey(name: r'$type') String $type,
  2. required String code,
  3. required int available,
  4. required bool disabled,
  5. required String forAccount,
  6. required String createdBy,
  7. required DateTime createdAt,
  8. @InviteCodeUseConverter() required List<InviteCodeUse> uses,
  9. @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;