Repo constructor

  1. @JsonSerializable(includeIfNull: false)
const Repo({
  1. @Default('com.atproto.sync.listRepos#repo') String $type,
  2. required String did,
  3. required String head,
  4. required String rev,
  5. bool? active,
  6. @RepoStatusConverter() RepoStatus? status,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Repo({
  @Default('com.atproto.sync.listRepos#repo') String $type,
  required String did,

  /// Current repo commit CID
  required String head,
  required String rev,
  bool? active,

  /// If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
  @RepoStatusConverter() RepoStatus? status,

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