InviteCodeUse constructor

  1. @JsonSerializable(includeIfNull: false)
const InviteCodeUse({
  1. @Default(comAtprotoServerDefsInviteCodeUse) @JsonKey(name: r'$type') String $type,
  2. required String usedBy,
  3. required DateTime usedAt,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory InviteCodeUse({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.server.defs#inviteCodeUse`
  @Default(comAtprotoServerDefsInviteCodeUse)
  @JsonKey(name: r'$type')
  String $type,
  required String usedBy,
  required DateTime usedAt,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _InviteCodeUse;