Remove unused model fields (#167)
* Remove unused fields from badges * Remove unused emote fields * Update emote tests * Remove unused channel fields * Remove unused stream fields * Remove unused user fields * Update tests
This commit is contained in:
parent
ed15e6148f
commit
c4f904ecca
13 changed files with 4 additions and 367 deletions
|
|
@ -2,7 +2,6 @@ import 'package:json_annotation/json_annotation.dart';
|
|||
|
||||
part 'badges.g.dart';
|
||||
|
||||
// Twitch Badges
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class BadgeInfoTwitch {
|
||||
@JsonKey(name: 'image_url_1x')
|
||||
|
|
@ -12,19 +11,13 @@ class BadgeInfoTwitch {
|
|||
@JsonKey(name: 'image_url_4x')
|
||||
final String imageUrl4x;
|
||||
|
||||
final String description;
|
||||
final String title;
|
||||
final String clickAction;
|
||||
final String clickUrl;
|
||||
|
||||
const BadgeInfoTwitch(
|
||||
this.imageUrl1x,
|
||||
this.imageUrl2x,
|
||||
this.imageUrl4x,
|
||||
this.description,
|
||||
this.title,
|
||||
this.clickAction,
|
||||
this.clickUrl,
|
||||
);
|
||||
|
||||
factory BadgeInfoTwitch.fromJson(Map<String, dynamic> json) => _$BadgeInfoTwitchFromJson(json);
|
||||
|
|
@ -33,22 +26,14 @@ class BadgeInfoTwitch {
|
|||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class BadgeInfoFFZ {
|
||||
final int id;
|
||||
final String name;
|
||||
final String title;
|
||||
final int slot;
|
||||
final String? replaces;
|
||||
final String color;
|
||||
final String image;
|
||||
final BadgeUrlsFFZ urls;
|
||||
|
||||
const BadgeInfoFFZ(
|
||||
this.id,
|
||||
this.name,
|
||||
this.title,
|
||||
this.slot,
|
||||
this.replaces,
|
||||
this.color,
|
||||
this.image,
|
||||
this.urls,
|
||||
);
|
||||
|
||||
|
|
@ -75,15 +60,11 @@ class BadgeUrlsFFZ {
|
|||
|
||||
@JsonSerializable(createToJson: false)
|
||||
class BadgeInfo7TV {
|
||||
final String id;
|
||||
final String name;
|
||||
final String tooltip;
|
||||
final List<List<String>> urls;
|
||||
final List<String> users;
|
||||
|
||||
BadgeInfo7TV(
|
||||
this.id,
|
||||
this.name,
|
||||
this.tooltip,
|
||||
this.urls,
|
||||
this.users,
|
||||
|
|
@ -94,16 +75,10 @@ class BadgeInfo7TV {
|
|||
|
||||
@JsonSerializable(createToJson: false)
|
||||
class BadgeInfoBTTV {
|
||||
final String id;
|
||||
final String name;
|
||||
final String displayName;
|
||||
final String providerId;
|
||||
final BadgeDetailsBTTV badge;
|
||||
|
||||
BadgeInfoBTTV(
|
||||
this.id,
|
||||
this.name,
|
||||
this.displayName,
|
||||
this.providerId,
|
||||
this.badge,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,20 +11,13 @@ BadgeInfoTwitch _$BadgeInfoTwitchFromJson(Map<String, dynamic> json) =>
|
|||
json['image_url_1x'] as String,
|
||||
json['image_url_2x'] as String,
|
||||
json['image_url_4x'] as String,
|
||||
json['description'] as String,
|
||||
json['title'] as String,
|
||||
json['click_action'] as String,
|
||||
json['click_url'] as String,
|
||||
);
|
||||
|
||||
BadgeInfoFFZ _$BadgeInfoFFZFromJson(Map<String, dynamic> json) => BadgeInfoFFZ(
|
||||
json['id'] as int,
|
||||
json['name'] as String,
|
||||
json['title'] as String,
|
||||
json['slot'] as int,
|
||||
json['replaces'] as String?,
|
||||
json['color'] as String,
|
||||
json['image'] as String,
|
||||
BadgeUrlsFFZ.fromJson(json['urls'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
|
|
@ -35,8 +28,6 @@ BadgeUrlsFFZ _$BadgeUrlsFFZFromJson(Map<String, dynamic> json) => BadgeUrlsFFZ(
|
|||
);
|
||||
|
||||
BadgeInfo7TV _$BadgeInfo7TVFromJson(Map<String, dynamic> json) => BadgeInfo7TV(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
json['tooltip'] as String,
|
||||
(json['urls'] as List<dynamic>)
|
||||
.map((e) => (e as List<dynamic>).map((e) => e as String).toList())
|
||||
|
|
@ -46,9 +37,6 @@ BadgeInfo7TV _$BadgeInfo7TVFromJson(Map<String, dynamic> json) => BadgeInfo7TV(
|
|||
|
||||
BadgeInfoBTTV _$BadgeInfoBTTVFromJson(Map<String, dynamic> json) =>
|
||||
BadgeInfoBTTV(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
json['displayName'] as String,
|
||||
json['providerId'] as String,
|
||||
BadgeDetailsBTTV.fromJson(json['badge'] as Map<String, dynamic>),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -8,21 +8,11 @@ class Channel {
|
|||
final String broadcasterId;
|
||||
final String broadcasterLogin;
|
||||
final String broadcasterName;
|
||||
final String broadcasterLanguage;
|
||||
final String gameId;
|
||||
final String gameName;
|
||||
final String title;
|
||||
final int delay;
|
||||
|
||||
const Channel({
|
||||
required this.broadcasterId,
|
||||
required this.broadcasterLogin,
|
||||
required this.broadcasterName,
|
||||
required this.broadcasterLanguage,
|
||||
required this.gameId,
|
||||
required this.gameName,
|
||||
required this.title,
|
||||
required this.delay,
|
||||
});
|
||||
|
||||
factory Channel.fromJson(Map<String, dynamic> json) => _$ChannelFromJson(json);
|
||||
|
|
@ -31,29 +21,17 @@ class Channel {
|
|||
// Object for Twitch channel search query.
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class ChannelQuery {
|
||||
final String broadcasterLanguage;
|
||||
final String broadcasterLogin;
|
||||
final String displayName;
|
||||
final String gameId;
|
||||
final String gameName;
|
||||
final String id;
|
||||
final bool isLive;
|
||||
final List<String> tagIds;
|
||||
final String thumbnailUrl;
|
||||
final String title;
|
||||
final String startedAt;
|
||||
|
||||
const ChannelQuery({
|
||||
required this.broadcasterLanguage,
|
||||
required this.broadcasterLogin,
|
||||
required this.displayName,
|
||||
required this.gameId,
|
||||
required this.gameName,
|
||||
required this.id,
|
||||
required this.isLive,
|
||||
required this.tagIds,
|
||||
required this.thumbnailUrl,
|
||||
required this.title,
|
||||
required this.startedAt,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -10,24 +10,12 @@ Channel _$ChannelFromJson(Map<String, dynamic> json) => Channel(
|
|||
broadcasterId: json['broadcaster_id'] as String,
|
||||
broadcasterLogin: json['broadcaster_login'] as String,
|
||||
broadcasterName: json['broadcaster_name'] as String,
|
||||
broadcasterLanguage: json['broadcaster_language'] as String,
|
||||
gameId: json['game_id'] as String,
|
||||
gameName: json['game_name'] as String,
|
||||
title: json['title'] as String,
|
||||
delay: json['delay'] as int,
|
||||
);
|
||||
|
||||
ChannelQuery _$ChannelQueryFromJson(Map<String, dynamic> json) => ChannelQuery(
|
||||
broadcasterLanguage: json['broadcaster_language'] as String,
|
||||
broadcasterLogin: json['broadcaster_login'] as String,
|
||||
displayName: json['display_name'] as String,
|
||||
gameId: json['game_id'] as String,
|
||||
gameName: json['game_name'] as String,
|
||||
id: json['id'] as String,
|
||||
isLive: json['is_live'] as bool,
|
||||
tagIds:
|
||||
(json['tag_ids'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
thumbnailUrl: json['thumbnail_url'] as String,
|
||||
title: json['title'] as String,
|
||||
startedAt: json['started_at'] as String,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -4,48 +4,18 @@ import 'package:json_annotation/json_annotation.dart';
|
|||
part 'emotes.g.dart';
|
||||
|
||||
// * Twitch Emotes *
|
||||
@JsonSerializable(createToJson: false)
|
||||
class ImagesTwitch {
|
||||
@JsonKey(name: 'url_1x')
|
||||
final String url1x;
|
||||
@JsonKey(name: 'url_2x')
|
||||
final String url2x;
|
||||
@JsonKey(name: 'url_4x')
|
||||
final String url4x;
|
||||
|
||||
const ImagesTwitch(
|
||||
this.url1x,
|
||||
this.url2x,
|
||||
this.url4x,
|
||||
);
|
||||
|
||||
factory ImagesTwitch.fromJson(Map<String, dynamic> json) => _$ImagesTwitchFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class EmoteTwitch {
|
||||
final String id;
|
||||
final String name;
|
||||
final ImagesTwitch images;
|
||||
final String? tier;
|
||||
final String? emoteType;
|
||||
final String? emoteSetId;
|
||||
final String? ownerId;
|
||||
final List<String> format;
|
||||
final List<String> scale;
|
||||
final List<String> themeMode;
|
||||
|
||||
const EmoteTwitch(
|
||||
this.id,
|
||||
this.name,
|
||||
this.images,
|
||||
this.tier,
|
||||
this.emoteType,
|
||||
this.emoteSetId,
|
||||
this.ownerId,
|
||||
this.format,
|
||||
this.scale,
|
||||
this.themeMode,
|
||||
);
|
||||
|
||||
factory EmoteTwitch.fromJson(Map<String, dynamic> json) => _$EmoteTwitchFromJson(json);
|
||||
|
|
@ -56,48 +26,21 @@ class EmoteTwitch {
|
|||
class EmoteBTTV {
|
||||
final String id;
|
||||
final String code;
|
||||
final String imageType;
|
||||
final String? userId;
|
||||
final UserBTTV? user;
|
||||
|
||||
const EmoteBTTV(
|
||||
this.id,
|
||||
this.code,
|
||||
this.imageType,
|
||||
this.userId,
|
||||
this.user,
|
||||
);
|
||||
|
||||
factory EmoteBTTV.fromJson(Map<String, dynamic> json) => _$EmoteBTTVFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false)
|
||||
class UserBTTV {
|
||||
final String id;
|
||||
final String name;
|
||||
final String displayName;
|
||||
final String providerId;
|
||||
|
||||
const UserBTTV(
|
||||
this.id,
|
||||
this.name,
|
||||
this.displayName,
|
||||
this.providerId,
|
||||
);
|
||||
|
||||
factory UserBTTV.fromJson(Map<String, dynamic> json) => _$UserBTTVFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false)
|
||||
class EmoteBTTVChannel {
|
||||
final String id;
|
||||
final List<String> bots;
|
||||
final List<EmoteBTTV> channelEmotes;
|
||||
final List<EmoteBTTV> sharedEmotes;
|
||||
|
||||
const EmoteBTTVChannel(
|
||||
this.id,
|
||||
this.bots,
|
||||
this.channelEmotes,
|
||||
this.sharedEmotes,
|
||||
);
|
||||
|
|
@ -109,15 +52,11 @@ class EmoteBTTVChannel {
|
|||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class RoomFFZ {
|
||||
final int set;
|
||||
final String? moderatorBadge;
|
||||
final ImagesFFZ? vipBadge;
|
||||
final ImagesFFZ? modUrls;
|
||||
// final Map<String, List<String>> userBadges;
|
||||
// final Map<String, List<int>> userBadgesIds;
|
||||
|
||||
const RoomFFZ(
|
||||
this.set,
|
||||
this.moderatorBadge,
|
||||
this.vipBadge,
|
||||
this.modUrls,
|
||||
);
|
||||
|
|
@ -145,106 +84,32 @@ class ImagesFFZ {
|
|||
|
||||
@JsonSerializable(createToJson: false)
|
||||
class EmoteFFZ {
|
||||
final int id;
|
||||
final String name;
|
||||
final int height;
|
||||
final int width;
|
||||
final OwnerFFZ owner;
|
||||
final ImagesFFZ urls;
|
||||
|
||||
const EmoteFFZ(
|
||||
this.id,
|
||||
this.name,
|
||||
this.height,
|
||||
this.width,
|
||||
this.owner,
|
||||
this.urls,
|
||||
);
|
||||
|
||||
factory EmoteFFZ.fromJson(Map<String, dynamic> json) => _$EmoteFFZFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class OwnerFFZ {
|
||||
@JsonKey(name: '_id')
|
||||
final int id;
|
||||
final String name;
|
||||
final String displayName;
|
||||
|
||||
const OwnerFFZ(
|
||||
this.id,
|
||||
this.name,
|
||||
this.displayName,
|
||||
);
|
||||
|
||||
factory OwnerFFZ.fromJson(Map<String, dynamic> json) => _$OwnerFFZFromJson(json);
|
||||
}
|
||||
|
||||
// * 7TV Emotes *
|
||||
@JsonSerializable(createToJson: false)
|
||||
class Role7TV {
|
||||
final String id;
|
||||
final String name;
|
||||
final int position;
|
||||
final int color;
|
||||
final int allowed;
|
||||
final int denied;
|
||||
@JsonKey(name: 'default')
|
||||
final bool? defaults;
|
||||
|
||||
const Role7TV(
|
||||
this.id,
|
||||
this.name,
|
||||
this.position,
|
||||
this.color,
|
||||
this.allowed,
|
||||
this.denied,
|
||||
this.defaults,
|
||||
);
|
||||
|
||||
factory Role7TV.fromJson(Map<String, dynamic> json) => _$Role7TVFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class Owner7TV {
|
||||
final String id;
|
||||
final String twitchId;
|
||||
final String login;
|
||||
final String displayName;
|
||||
final Role7TV role;
|
||||
|
||||
const Owner7TV(
|
||||
this.id,
|
||||
this.twitchId,
|
||||
this.login,
|
||||
this.displayName,
|
||||
this.role,
|
||||
);
|
||||
|
||||
factory Owner7TV.fromJson(Map<String, dynamic> json) => _$Owner7TVFromJson(json);
|
||||
}
|
||||
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class Emote7TV {
|
||||
final String id;
|
||||
final String name;
|
||||
final Owner7TV? owner;
|
||||
final int visibility;
|
||||
final List<String> visibilitySimple;
|
||||
final String mime;
|
||||
final int status;
|
||||
final List<int> width;
|
||||
final List<int> height;
|
||||
final List<List<String>> urls;
|
||||
|
||||
const Emote7TV(
|
||||
this.id,
|
||||
this.name,
|
||||
this.owner,
|
||||
this.visibility,
|
||||
this.visibilitySimple,
|
||||
this.mime,
|
||||
this.status,
|
||||
this.width,
|
||||
this.height,
|
||||
this.urls,
|
||||
|
|
|
|||
|
|
@ -6,46 +6,20 @@ part of 'emotes.dart';
|
|||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
ImagesTwitch _$ImagesTwitchFromJson(Map<String, dynamic> json) => ImagesTwitch(
|
||||
json['url_1x'] as String,
|
||||
json['url_2x'] as String,
|
||||
json['url_4x'] as String,
|
||||
);
|
||||
|
||||
EmoteTwitch _$EmoteTwitchFromJson(Map<String, dynamic> json) => EmoteTwitch(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
ImagesTwitch.fromJson(json['images'] as Map<String, dynamic>),
|
||||
json['tier'] as String?,
|
||||
json['emote_type'] as String?,
|
||||
json['emote_set_id'] as String?,
|
||||
json['owner_id'] as String?,
|
||||
(json['format'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
(json['scale'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
(json['theme_mode'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
);
|
||||
|
||||
EmoteBTTV _$EmoteBTTVFromJson(Map<String, dynamic> json) => EmoteBTTV(
|
||||
json['id'] as String,
|
||||
json['code'] as String,
|
||||
json['imageType'] as String,
|
||||
json['userId'] as String?,
|
||||
json['user'] == null
|
||||
? null
|
||||
: UserBTTV.fromJson(json['user'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
UserBTTV _$UserBTTVFromJson(Map<String, dynamic> json) => UserBTTV(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
json['displayName'] as String,
|
||||
json['providerId'] as String,
|
||||
);
|
||||
|
||||
EmoteBTTVChannel _$EmoteBTTVChannelFromJson(Map<String, dynamic> json) =>
|
||||
EmoteBTTVChannel(
|
||||
json['id'] as String,
|
||||
(json['bots'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
(json['channelEmotes'] as List<dynamic>)
|
||||
.map((e) => EmoteBTTV.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
|
|
@ -56,7 +30,6 @@ EmoteBTTVChannel _$EmoteBTTVChannelFromJson(Map<String, dynamic> json) =>
|
|||
|
||||
RoomFFZ _$RoomFFZFromJson(Map<String, dynamic> json) => RoomFFZ(
|
||||
json['set'] as int,
|
||||
json['moderator_badge'] as String?,
|
||||
json['vip_badge'] == null
|
||||
? null
|
||||
: ImagesFFZ.fromJson(json['vip_badge'] as Map<String, dynamic>),
|
||||
|
|
@ -72,50 +45,17 @@ ImagesFFZ _$ImagesFFZFromJson(Map<String, dynamic> json) => ImagesFFZ(
|
|||
);
|
||||
|
||||
EmoteFFZ _$EmoteFFZFromJson(Map<String, dynamic> json) => EmoteFFZ(
|
||||
json['id'] as int,
|
||||
json['name'] as String,
|
||||
json['height'] as int,
|
||||
json['width'] as int,
|
||||
OwnerFFZ.fromJson(json['owner'] as Map<String, dynamic>),
|
||||
ImagesFFZ.fromJson(json['urls'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
OwnerFFZ _$OwnerFFZFromJson(Map<String, dynamic> json) => OwnerFFZ(
|
||||
json['_id'] as int,
|
||||
json['name'] as String,
|
||||
json['display_name'] as String,
|
||||
);
|
||||
|
||||
Role7TV _$Role7TVFromJson(Map<String, dynamic> json) => Role7TV(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
json['position'] as int,
|
||||
json['color'] as int,
|
||||
json['allowed'] as int,
|
||||
json['denied'] as int,
|
||||
json['default'] as bool?,
|
||||
);
|
||||
|
||||
Owner7TV _$Owner7TVFromJson(Map<String, dynamic> json) => Owner7TV(
|
||||
json['id'] as String,
|
||||
json['twitch_id'] as String,
|
||||
json['login'] as String,
|
||||
json['display_name'] as String,
|
||||
Role7TV.fromJson(json['role'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
Emote7TV _$Emote7TVFromJson(Map<String, dynamic> json) => Emote7TV(
|
||||
json['id'] as String,
|
||||
json['name'] as String,
|
||||
json['owner'] == null
|
||||
? null
|
||||
: Owner7TV.fromJson(json['owner'] as Map<String, dynamic>),
|
||||
json['visibility'] as int,
|
||||
(json['visibility_simple'] as List<dynamic>)
|
||||
.map((e) => e as String)
|
||||
.toList(),
|
||||
json['mime'] as String,
|
||||
json['status'] as int,
|
||||
(json['width'] as List<dynamic>).map((e) => e as int).toList(),
|
||||
(json['height'] as List<dynamic>).map((e) => e as int).toList(),
|
||||
(json['urls'] as List<dynamic>)
|
||||
|
|
|
|||
|
|
@ -5,36 +5,26 @@ part 'stream.g.dart';
|
|||
// Object for live Twitch streams.
|
||||
@JsonSerializable(createToJson: false, fieldRename: FieldRename.snake)
|
||||
class StreamTwitch {
|
||||
final String id;
|
||||
final String userId;
|
||||
final String userLogin;
|
||||
final String userName;
|
||||
final String gameId;
|
||||
final String gameName;
|
||||
final String type;
|
||||
final String title;
|
||||
final int viewerCount;
|
||||
final String startedAt;
|
||||
final String language;
|
||||
final String thumbnailUrl;
|
||||
final List<String>? tagIds;
|
||||
final bool isMature;
|
||||
|
||||
const StreamTwitch(
|
||||
this.id,
|
||||
this.userId,
|
||||
this.userLogin,
|
||||
this.userName,
|
||||
this.gameId,
|
||||
this.gameName,
|
||||
this.type,
|
||||
this.title,
|
||||
this.viewerCount,
|
||||
this.startedAt,
|
||||
this.language,
|
||||
this.thumbnailUrl,
|
||||
this.tagIds,
|
||||
this.isMature,
|
||||
);
|
||||
|
||||
factory StreamTwitch.fromJson(Map<String, dynamic> json) => _$StreamTwitchFromJson(json);
|
||||
|
|
|
|||
|
|
@ -7,20 +7,15 @@ part of 'stream.dart';
|
|||
// **************************************************************************
|
||||
|
||||
StreamTwitch _$StreamTwitchFromJson(Map<String, dynamic> json) => StreamTwitch(
|
||||
json['id'] as String,
|
||||
json['user_id'] as String,
|
||||
json['user_login'] as String,
|
||||
json['user_name'] as String,
|
||||
json['game_id'] as String,
|
||||
json['game_name'] as String,
|
||||
json['type'] as String,
|
||||
json['title'] as String,
|
||||
json['viewer_count'] as int,
|
||||
json['started_at'] as String,
|
||||
json['language'] as String,
|
||||
json['thumbnail_url'] as String,
|
||||
(json['tag_ids'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
||||
json['is_mature'] as bool,
|
||||
);
|
||||
|
||||
StreamsTwitch _$StreamsTwitchFromJson(Map<String, dynamic> json) =>
|
||||
|
|
|
|||
|
|
@ -8,25 +8,13 @@ class UserTwitch {
|
|||
final String id;
|
||||
final String login;
|
||||
final String displayName;
|
||||
final String type;
|
||||
final String broadcasterType;
|
||||
final String description;
|
||||
final String profileImageUrl;
|
||||
final String offlineImageUrl;
|
||||
final int viewCount;
|
||||
final String createdAt;
|
||||
|
||||
const UserTwitch(
|
||||
this.id,
|
||||
this.login,
|
||||
this.displayName,
|
||||
this.type,
|
||||
this.broadcasterType,
|
||||
this.description,
|
||||
this.profileImageUrl,
|
||||
this.offlineImageUrl,
|
||||
this.viewCount,
|
||||
this.createdAt,
|
||||
);
|
||||
|
||||
factory UserTwitch.fromJson(Map<String, dynamic> json) => _$UserTwitchFromJson(json);
|
||||
|
|
|
|||
|
|
@ -10,13 +10,7 @@ UserTwitch _$UserTwitchFromJson(Map<String, dynamic> json) => UserTwitch(
|
|||
json['id'] as String,
|
||||
json['login'] as String,
|
||||
json['display_name'] as String,
|
||||
json['type'] as String,
|
||||
json['broadcaster_type'] as String,
|
||||
json['description'] as String,
|
||||
json['profile_image_url'] as String,
|
||||
json['offline_image_url'] as String,
|
||||
json['view_count'] as int,
|
||||
json['created_at'] as String,
|
||||
);
|
||||
|
||||
UserBlockedTwitch _$UserBlockedTwitchFromJson(Map<String, dynamic> json) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue