create static method

YoutubeChannelVideos create({
  1. String? special_type,
  2. int? count,
  3. List<YoutubeVideo>? videos,
})
override

return original data json

Implementation

static YoutubeChannelVideos create({
  String? special_type,
  int? count,
  List<YoutubeVideo>? videos,
}) {
  YoutubeChannelVideos youtubeChannelVideos = YoutubeChannelVideos({
    "@type": special_type,
    "count": count,
    "videos": (videos != null)
        ? videos.map((res) => res.toJson()).toList().cast<Map>()
        : null,
  });

  return youtubeChannelVideos;
}