toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (categoryId != null) 'categoryId': categoryId!,
      if (channelId != null) 'channelId': channelId!,
      if (channelTitle != null) 'channelTitle': channelTitle!,
      if (defaultAudioLanguage != null)
        'defaultAudioLanguage': defaultAudioLanguage!,
      if (defaultLanguage != null) 'defaultLanguage': defaultLanguage!,
      if (description != null) 'description': description!,
      if (liveBroadcastContent != null)
        'liveBroadcastContent': liveBroadcastContent!,
      if (localized != null) 'localized': localized!,
      if (publishedAt != null)
        'publishedAt': publishedAt!.toUtc().toIso8601String(),
      if (tags != null) 'tags': tags!,
      if (thumbnails != null) 'thumbnails': thumbnails!,
      if (title != null) 'title': title!,
    };