CommentReport constructor

  1. @ForceUtcDateTime()
  2. @ForceUtcDateTimeNullable()
  3. @JsonSerializable(fieldRename: FieldRename.snake)
const CommentReport({
  1. required int id,
  2. required int creatorId,
  3. required int commentId,
  4. required String originalCommentText,
  5. required String reason,
  6. required bool resolved,
  7. int? resolverId,
  8. required DateTime published,
  9. DateTime? updated,
  10. required String instanceHost,
})

Implementation

@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory CommentReport({
  required int id,
  required int creatorId,
  required int commentId,
  required String originalCommentText,
  required String reason,
  required bool resolved,
  int? resolverId,
  required DateTime published,
  DateTime? updated,
  required String instanceHost,
}) = _CommentReport;