Channel class

A Channel class with information retrieved from Holodex.

Annotations
  • @freezed

Constructors

Channel({required String id, required String name, @JsonKey(name: 'english_name') String? englishName, ChannelType? type, String? photo, @JsonKey(name: 'org') String? organization, @JsonKey(name: 'video_count') int? videoCount, @JsonKey(name: 'subscriber_count') int? subscriberCount, @JsonKey(name: 'view_count') int? viewCount, @JsonKey(name: 'clip_count') int? clipCount, @JsonKey(name: 'suborg') String? subOrganization, String? banner, String? twitter, @JsonKey(toJson: Language.toStringStatic, fromJson: Language.fromString) required Language lang, bool? inactive, String? description, @JsonKey(name: 'published_at') String? publishedAt, @JsonKey(name: 'crawled_at') String? crawledAt, @JsonKey(name: 'comments_crawled_at') String? commentsCrawledAt, @JsonKey(name: 'updated_at') String? updatedAt, @JsonKey(name: 'yt_uploads_id') String? ytUploadsId, @JsonKey(name: 'top_topics') @Default([]) List<String> topTopics, @JsonKey(name: 'yt_handle') @Default([]) List<String> ytHandle, String? twitch, @JsonKey(name: 'yt_name_history') @Default([]) List<String> ytNameHistory, String? group})
Returns a new Channel instance.
const
factory
Channel.fromJson(Map<String, dynamic> json)
Returns a new Channel instance from a JSON object.
factory
Channel.fromString(String json)
Returns a new Channel instance from a JSON string.
factory

Properties

no setterinherited
clipCount int?
no setterinherited
commentsCrawledAt String?
no setterinherited
copyWith → $ChannelCopyWith<Channel>
no setterinherited
crawledAt String?
no setterinherited
description String?
no setterinherited
englishName String?
no setterinherited
group String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
inactive bool?
no setterinherited
lang Language
no setterinherited
name String
no setterinherited
organization String?
no setterinherited
photo String?
no setterinherited
publishedAt String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subOrganization String?
no setterinherited
subscriberCount int?
no setterinherited
topTopics List<String>
no setterinherited
twitch String?
no setterinherited
twitter String?
no setterinherited
type ChannelType?
no setterinherited
updatedAt String?
no setterinherited
videoCount int?
no setterinherited
viewCount int?
no setterinherited
ytHandle List<String>
no setterinherited
ytNameHistory List<String>
no setterinherited
ytUploadsId String?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toChannelMin() ChannelMin
Converts this Channel instance to a ChannelMin instance.
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited