PostView constructor
- @JsonSerializable(fieldRename: FieldRename.snake)
const
PostView(
{ - required Post post,
- required PersonSafe creator,
- required PostAggregates counts,
- required bool subscribed,
- required bool saved,
- required bool read,
- required bool creatorBlocked,
- VoteType? myVote,
- required String instanceHost,
})
Implementation
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PostView({
required Post post,
required PersonSafe creator,
required CommunitySafe community,
required bool creatorBannedFromCommunity,
required PostAggregates counts,
required bool subscribed,
required bool saved,
required bool read,
required bool creatorBlocked,
VoteType? myVote,
required String instanceHost,
}) = _PostView;