RepoOp constructor

  1. @JsonSerializable(includeIfNull: false)
const RepoOp({
  1. @Default('com.atproto.sync.subscribeRepos#repoOp') String $type,
  2. @RepoOpActionConverter() required RepoOpAction action,
  3. required String path,
  4. required String? cid,
  5. String? prev,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepoOp({
  @Default('com.atproto.sync.subscribeRepos#repoOp') String $type,
  @RepoOpActionConverter() required RepoOpAction action,
  required String path,

  /// For creates and updates, the new record CID. For deletions, null.
  required String? cid,

  /// For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined.
  String? prev,

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