CommentReplyView constructor

const CommentReplyView({
  1. required Comment comment,
  2. required Person creator,
  3. required Post post,
  4. required Community community,
  5. @JsonKey.new(name: 'comment_reply') required CommentReply commentReply,
  6. CommentAggregates? counts,
  7. @JsonKey.new(name: 'activity_alert') bool? activityAlert,
  8. required bool saved,
  9. @JsonKey.new(name: 'my_vote') int? myVote,
  10. @JsonKey.new(fromJson: _subscribedFromJson) SubscribedType? subscribed,
  11. bool? distinguished,
})

Implementation

const factory CommentReplyView({
  required Comment comment,
  required Person creator,
  required Post post,
  required Community community,
  @JsonKey(name: 'comment_reply') required CommentReply commentReply,
  CommentAggregates? counts,
  @JsonKey(name: 'activity_alert') bool? activityAlert,
  required bool saved,
  @JsonKey(name: 'my_vote') int? myVote,
  @JsonKey(fromJson: _subscribedFromJson) SubscribedType? subscribed,
  bool? distinguished,
}) = _CommentReplyView;