create static method

YoutubeChannel create({
  1. String? special_type,
  2. String? id,
  3. String? title,
  4. String? url,
  5. int? subscribers_count,
  6. String? profile_banner,
  7. String? profile_picture,
})
override

return original data json

Implementation

static YoutubeChannel create({
  String? special_type,
  String? id,
  String? title,
  String? url,
  int? subscribers_count,
  String? profile_banner,
  String? profile_picture,
}) {
  YoutubeChannel youtubeChannel = YoutubeChannel({
    "@type": special_type,
    "id": id,
    "title": title,
    "url": url,
    "subscribers_count": subscribers_count,
    "profile_banner": profile_banner,
    "profile_picture": profile_picture,
  });

  return youtubeChannel;
}