PostAggregates constructor

  1. @ForceUtcDateTime()
  2. @ForceUtcDateTimeNullable()
  3. @JsonSerializable(fieldRename: FieldRename.snake)
const PostAggregates({
  1. required int id,
  2. required int postId,
  3. required int comments,
  4. required int score,
  5. required int upvotes,
  6. required int downvotes,
  7. required DateTime newestCommentTime,
  8. required DateTime newestCommentTimeNecro,
})

Implementation

@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PostAggregates({
  required int id,
  required int postId,
  required int comments,
  required int score,
  required int upvotes,
  required int downvotes,
  required DateTime newestCommentTime,
  required DateTime newestCommentTimeNecro,
}) = _PostAggregates;