toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (attachmentId != null) 'attachmentId': attachmentId!,
if (courseId != null) 'courseId': courseId!,
if (itemId != null) 'itemId': itemId!,
if (postId != null) 'postId': postId!,
};