AccountCodes constructor

  1. @JsonSerializable(includeIfNull: false)
const AccountCodes({
  1. @Default(comAtprotoServerCreateInviteCodesAccountCodes) @JsonKey(name: r'$type') String $type,
  2. required String account,
  3. required List<String> codes,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory AccountCodes({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.server.createInviteCodes#accountCodes`
  @Default(comAtprotoServerCreateInviteCodesAccountCodes)
  @JsonKey(name: r'$type')
  String $type,
  required String account,
  required List<String> codes,

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