RepoWrite constructor

const RepoWrite({
  1. @Default.new('com.atproto.space.defs#repoWrite') String $type,
  2. required String repo,
  3. required String repoRev,
  4. required Map<String, dynamic> data,
  5. required String spaceRev,
  6. String? prevSpaceRev,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepoWrite({
  @Default('com.atproto.space.defs#repoWrite') String $type,
  required String repo,
  required String repoRev,

  /// SHA-256 digest of the repo's LtHash state.
  required Map<String, dynamic> data,

  /// The space revision at which this update was sequenced.
  required String spaceRev,

  /// The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters.
  String? prevSpaceRev,

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