Comment constructor
- @ForceUtcDateTime()
- @ForceUtcDateTimeNullable()
- @JsonSerializable(fieldRename: FieldRename.snake)
const
Comment(
{ - required int id,
- required int creatorId,
- required int postId,
- int? parentId,
- required String content,
- required bool removed,
- required bool read,
- required DateTime published,
- DateTime? updated,
- required bool deleted,
- required String apId,
- required bool local,
- required String instanceHost,
})
Implementation
@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory Comment({
required int id,
required int creatorId,
required int postId,
int? parentId,
required String content,
required bool removed,
required bool read,
required DateTime published,
DateTime? updated,
required bool deleted,
required String apId,
required bool local,
required String instanceHost,
}) = _Comment;