toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (authorChannelId != null) 'authorChannelId': authorChannelId!,
      if (authorChannelUrl != null) 'authorChannelUrl': authorChannelUrl!,
      if (authorDisplayName != null) 'authorDisplayName': authorDisplayName!,
      if (authorProfileImageUrl != null)
        'authorProfileImageUrl': authorProfileImageUrl!,
      if (canRate != null) 'canRate': canRate!,
      if (channelId != null) 'channelId': channelId!,
      if (likeCount != null) 'likeCount': likeCount!,
      if (moderationStatus != null) 'moderationStatus': moderationStatus!,
      if (parentId != null) 'parentId': parentId!,
      if (publishedAt != null)
        'publishedAt': publishedAt!.toUtc().toIso8601String(),
      if (textDisplay != null) 'textDisplay': textDisplay!,
      if (textOriginal != null) 'textOriginal': textOriginal!,
      if (updatedAt != null)
        'updatedAt': updatedAt!.toUtc().toIso8601String(),
      if (videoId != null) 'videoId': videoId!,
      if (viewerRating != null) 'viewerRating': viewerRating!,
    };