Post constructor
- @ForceUtcDateTime()
- @ForceUtcDateTimeNullable()
- @JsonSerializable(fieldRename: FieldRename.snake)
const
Post(
{ - required int id,
- required String name,
- String? url,
- String? body,
- required int creatorId,
- required bool removed,
- required bool locked,
- required DateTime published,
- DateTime? updated,
- required bool deleted,
- required bool nsfw,
- required bool stickied,
- String? embedTitle,
- String? embedDescription,
- String? embedHtml,
- String? thumbnailUrl,
- required String apId,
- required bool local,
- required String instanceHost,
})
Implementation
@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory Post({
required int id,
required String name,
String? url,
String? body,
required int creatorId,
required int communityId,
required bool removed,
required bool locked,
required DateTime published,
DateTime? updated,
required bool deleted,
required bool nsfw,
required bool stickied,
String? embedTitle,
String? embedDescription,
String? embedHtml,
String? thumbnailUrl,
required String apId,
required bool local,
required String instanceHost,
}) = _Post;