Sync constructor

  1. @JsonSerializable(includeIfNull: false)
const Sync({
  1. @Default('com.atproto.sync.subscribeRepos#sync') String $type,
  2. required int seq,
  3. required String did,
  4. required Map<String, dynamic> blocks,
  5. required String rev,
  6. required DateTime time,
  7. 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;