Commit constructor
const
Commit(
{ - required List<RepoOp> ops,
- @JsonKey(name: 'repo') required String did,
- @JsonKey(name: 'seq') required int cursor,
- required String rev,
- String? since,
- @JsonKey(name: 'tooBig') @Default(false) bool isTooBig,
- @JsonKey(name: 'time') required DateTime createdAt,
})
Implementation
@jsonSerializable
const factory Commit({
required List<RepoOp> ops,
@JsonKey(name: 'repo') required String did,
@JsonKey(name: 'seq') required int cursor,
/// The rev of the emitted commit.
required String rev,
/// The rev of the last emitted commit from this repo.
String? since,
@JsonKey(name: 'tooBig') @Default(false) bool isTooBig,
@JsonKey(name: 'time') required DateTime createdAt,
}) = _Commit;