FullPostView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const FullPostView({
  1. required PostView postView,
  2. required CommunityView communityView,
  3. required List<CommentView> comments,
  4. required List<CommunityModeratorView> moderators,
  5. required int online,
  6. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory FullPostView({
  required PostView postView,
  required CommunityView communityView,
  required List<CommentView> comments,
  required List<CommunityModeratorView> moderators,
  required int online,
  required String instanceHost,
}) = _FullPostView;