ChannelMin class
A ChannelMin class with information retrieved from Holodex.
- Annotations
-
- @freezed
Constructors
- ChannelMin({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})
-
Returns a new ChannelMin instance.
constfactory
-
ChannelMin.fromJson(Map<
String, dynamic> json) -
Returns a new ChannelMin instance from a JSON object.
factory
Properties
- clipCount → int?
-
no setterinherited
-
copyWith
→ $ChannelMinCopyWith<
ChannelMin> -
no setterinherited
- englishName → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- name → String
-
no setterinherited
- organization → String?
-
no setterinherited
- photo → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscriberCount → int?
-
no setterinherited
- type → ChannelType?
-
no setterinherited
- videoCount → int?
-
no setterinherited
- viewCount → int?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toChannel(
) → Channel - Convert this ChannelMin instance to a Channel instance.
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited