Sync constructor
- @JsonSerializable(includeIfNull: false)
const
Sync(
{ - @Default('com.atproto.sync.subscribeRepos#sync') String $type,
- required int seq,
- required String did,
- required Map<String, dynamic> blocks,
- required String rev,
- required DateTime time,
- Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Sync({
@Default('com.atproto.sync.subscribeRepos#sync') String $type,
/// The stream sequence number of this message.
required int seq,
/// The account this repo event corresponds to. Must match that in the commit object.
required String did,
/// CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'.
required Map<String, dynamic> blocks,
/// The rev of the commit. This value must match that in the commit object.
required String rev,
/// Timestamp of when this message was originally broadcast.
required DateTime time,
Map<String, dynamic>? $unknown,
}) = _Sync;