Account constructor

  1. @JsonSerializable(includeIfNull: false)
const Account({
  1. @Default('com.atproto.sync.subscribeRepos#account') String $type,
  2. required int seq,
  3. required String did,
  4. required DateTime time,
  5. required bool active,
  6. @AccountStatusConverter() AccountStatus? status,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Account({
  @Default('com.atproto.sync.subscribeRepos#account') 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.
  @AccountStatusConverter() AccountStatus? status,

  Map<String, dynamic>? $unknown,
}) = _Account;