Repo constructor

  1. @JsonSerializable(includeIfNull: false)
const Repo({
  1. @Default(comAtprotoSyncListReposRepo) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. required String head,
  4. required String rev,
  5. @Default(false) bool active,
  6. @URepoStatusConverter() URepoStatus? status,
  7. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Repo({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.sync.listRepos#repo`
  @Default(comAtprotoSyncListReposRepo) @JsonKey(name: r'$type') String $type,
  required String did,

  /// Current repo commit CID
  required String head,
  required String rev,
  @Default(false) 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.
  @URepoStatusConverter() URepoStatus? status,

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