toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (commentCount != null) 'commentCount': commentCount!,
      if (dislikeCount != null) 'dislikeCount': dislikeCount!,
      if (favoriteCount != null) 'favoriteCount': favoriteCount!,
      if (likeCount != null) 'likeCount': likeCount!,
      if (viewCount != null) 'viewCount': viewCount!,
    };