toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (channelId != null) 'channelId': channelId!,
      if (channelTitle != null) 'channelTitle': channelTitle!,
      if (description != null) 'description': description!,
      if (playlistId != null) 'playlistId': playlistId!,
      if (position != null) 'position': position!,
      if (publishedAt != null)
        'publishedAt': publishedAt!.toUtc().toIso8601String(),
      if (resourceId != null) 'resourceId': resourceId!,
      if (thumbnails != null) 'thumbnails': thumbnails!,
      if (title != null) 'title': title!,
      if (videoOwnerChannelId != null)
        'videoOwnerChannelId': videoOwnerChannelId!,
      if (videoOwnerChannelTitle != null)
        'videoOwnerChannelTitle': videoOwnerChannelTitle!,
    };