AccountView constructor

  1. @JsonSerializable(includeIfNull: false)
const AccountView({
  1. @Default(comAtprotoAdminDefsAccountView) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. required String handle,
  4. String? email,
  5. List<Map<String, dynamic>>? relatedRecords,
  6. required DateTime indexedAt,
  7. @InviteCodeConverter() InviteCode? invitedBy,
  8. @InviteCodeConverter() List<InviteCode>? invites,
  9. @Default(false) bool invitesDisabled,
  10. DateTime? emailConfirmedAt,
  11. String? inviteNote,
  12. DateTime? deactivatedAt,
  13. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory AccountView({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.admin.defs#accountView`
  @Default(comAtprotoAdminDefsAccountView)
  @JsonKey(name: r'$type')
  String $type,
  required String did,
  required String handle,
  String? email,
  List<Map<String, dynamic>>? relatedRecords,
  required DateTime indexedAt,
  @InviteCodeConverter() InviteCode? invitedBy,
  @InviteCodeConverter() List<InviteCode>? invites,
  @Default(false) bool invitesDisabled,
  DateTime? emailConfirmedAt,
  String? inviteNote,
  DateTime? deactivatedAt,

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