UserNotificationItemView constructor
const
UserNotificationItemView({
- required Person author,
- @JsonKey.new(name: 'notif_body') required String notifBody,
- @JsonKey.new(name: 'notif_id') required int notifId,
- @JsonKey.new(name: 'notif_subtype') required String notifSubtype,
- @JsonKey.new(name: 'notif_type') required int notifType,
- required String status,
- Comment? comment,
- @JsonKey.new(name: 'comment_view') CommentView? commentView,
- @JsonKey.new(name: 'comment_id') int? commentId,
- Community? community,
- PostView? post,
- @JsonKey.new(name: 'post_id') int? postId,
Implementation
const factory UserNotificationItemView({
required Person author,
@JsonKey(name: 'notif_body') required String notifBody,
@JsonKey(name: 'notif_id') required int notifId,
@JsonKey(name: 'notif_subtype') required String notifSubtype,
@JsonKey(name: 'notif_type') required int notifType,
required String status,
Comment? comment,
@JsonKey(name: 'comment_view') CommentView? commentView,
@JsonKey(name: 'comment_id') int? commentId,
Community? community,
PostView? post,
@JsonKey(name: 'post_id') int? postId,
}) = _UserNotificationItemView;