Account constructor

  1. @JsonSerializable(includeIfNull: false)
const Account({
  1. @Default(comAtprotoSyncSubscribeReposAccount) @JsonKey(name: r'$type') String $type,
  2. required int seq,
  3. required String did,
  4. required DateTime time,
  5. required bool active,
  6. @UAccountStatusConverter() UAccountStatus? status,
  7. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Account({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.sync.subscribeRepos#account`
  @Default(comAtprotoSyncSubscribeReposAccount)
  @JsonKey(name: r'$type')
  String $type,
  required int seq,
  required String did,
  required DateTime time,

  /// Indicates that the account has a repository which can be fetched
  /// from the host that emitted this event.
  required bool active,

  /// If active=false, this optional field indicates a reason for why
  /// the account is not active.
  @UAccountStatusConverter() UAccountStatus? status,

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