CommentReportView constructor

const CommentReportView({
  1. @JsonKey.new(name: 'comment_report') required CommentReport commentReport,
  2. required Comment comment,
  3. required Post post,
  4. required Community community,
  5. required Person creator,
  6. CommentAggregates? counts,
  7. @JsonKey.new(name: 'creator_banned_from_community') bool? creatorBannedFromCommunity,
  8. @JsonKey.new(name: 'creator_is_moderator') bool? creatorIsModerator,
  9. @JsonKey.new(name: 'creator_is_admin') bool? creatorIsAdmin,
  10. @JsonKey.new(name: 'creator_blocked') bool? creatorBlocked,
  11. @JsonKey.new(name: 'banned_from_community') bool? bannedFromCommunity,
  12. @JsonKey.new(name: 'activity_alert') bool? activityAlert,
  13. @JsonKey.new(fromJson: _subscribedFromJson) SubscribedType? subscribed,
  14. bool? saved,
  15. @JsonKey.new(name: 'my_vote') int? myVote,
  16. @JsonKey.new(name: 'can_auth_user_moderate') bool? canAuthUserModerate,
})

Implementation

const factory CommentReportView({
  @JsonKey(name: 'comment_report') required CommentReport commentReport,
  required Comment comment,
  required Post post,
  required Community community,
  required Person creator,
  CommentAggregates? counts,
  @JsonKey(name: 'creator_banned_from_community') bool? creatorBannedFromCommunity,
  @JsonKey(name: 'creator_is_moderator') bool? creatorIsModerator,
  @JsonKey(name: 'creator_is_admin') bool? creatorIsAdmin,
  @JsonKey(name: 'creator_blocked') bool? creatorBlocked,
  @JsonKey(name: 'banned_from_community') bool? bannedFromCommunity,
  @JsonKey(name: 'activity_alert') bool? activityAlert,
  @JsonKey(fromJson: _subscribedFromJson) SubscribedType? subscribed,
  bool? saved,
  @JsonKey(name: 'my_vote') int? myVote,
  @JsonKey(name: 'can_auth_user_moderate') bool? canAuthUserModerate,
}) = _CommentReportView;