PostReport constructor
- @ForceUtcDateTime()
- @ForceUtcDateTimeNullable()
- @JsonSerializable(fieldRename: FieldRename.snake)
const
PostReport(
{ - required int id,
- required int creatorId,
- required int postId,
- required String originalPostName,
- String? originalPostUrl,
- String? originalPostBody,
- required String reason,
- required bool resolved,
- int? resolverId,
- required DateTime published,
- DateTime? updated,
- required String instanceHost,
})
Implementation
@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PostReport({
required int id,
required int creatorId,
required int postId,
required String originalPostName,
String? originalPostUrl,
String? originalPostBody,
required String reason,
required bool resolved,
int? resolverId,
required DateTime published,
DateTime? updated,
required String instanceHost,
}) = _PostReport;