toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'channelId': channelId,
      'videoId': videoId,
      'textDisplay': textDisplay,
      'textOriginal': textOriginal,
      'authorDisplayName': authorDisplayName,
      'authorProfileImageUrl': authorProfileImageUrl,
      'authorChannelUrl': authorChannelUrl,
      'authorChannelId': authorChannelId?.toJson(),
      'canRate': canRate,
      'viewerRating': viewerRating,
      'likeCount': likeCount,
      'publishedAt': publishedAt,
      'updatedAt': updatedAt,
    };