CommentReportView constructor
const
CommentReportView({
- @JsonKey.new(name: 'comment_report') required CommentReport commentReport,
- required Comment comment,
- required Post post,
- required Community community,
- required Person creator,
- CommentAggregates? counts,
- @JsonKey.new(name: 'creator_banned_from_community') bool? creatorBannedFromCommunity,
- @JsonKey.new(name: 'creator_is_moderator') bool? creatorIsModerator,
- @JsonKey.new(name: 'creator_is_admin') bool? creatorIsAdmin,
- @JsonKey.new(name: 'creator_blocked') bool? creatorBlocked,
- @JsonKey.new(name: 'banned_from_community') bool? bannedFromCommunity,
- @JsonKey.new(name: 'activity_alert') bool? activityAlert,
- @JsonKey.new(fromJson: _subscribedFromJson) SubscribedType? subscribed,
- bool? saved,
- @JsonKey.new(name: 'my_vote') int? myVote,
- @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;