RepoOp constructor

  1. @JsonSerializable(includeIfNull: false)
const RepoOp({
  1. @Default(comAtprotoSyncSubscribeReposRepoOp) @JsonKey(name: r'$type') String $type,
  2. @URepoOpActionConverter() required URepoOpAction action,
  3. required String path,
  4. String? cid,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepoOp({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.sync.subscribeRepos#repoOp`
  @Default(comAtprotoSyncSubscribeReposRepoOp)
  @JsonKey(name: r'$type')
  String $type,
  @URepoOpActionConverter() required URepoOpAction action,
  required String path,

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

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