toJson method

Map<String, dynamic> toJson()

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!,
    };