// GENERATED CODE - DO NOT MODIFY BY HAND part of 'emotes.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ImagesTwitch _$ImagesTwitchFromJson(Map json) => ImagesTwitch( json['url_1x'] as String, json['url_2x'] as String, json['url_4x'] as String, ); EmoteTwitch _$EmoteTwitchFromJson(Map json) => EmoteTwitch( json['id'] as String, json['name'] as String, ImagesTwitch.fromJson(json['images'] as Map), json['tier'] as String?, json['emote_type'] as String?, json['emote_set_id'] as String?, json['owner_id'] as String?, (json['format'] as List).map((e) => e as String).toList(), (json['scale'] as List).map((e) => e as String).toList(), (json['theme_mode'] as List).map((e) => e as String).toList(), ); EmoteBTTV _$EmoteBTTVFromJson(Map 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), ); UserBTTV _$UserBTTVFromJson(Map json) => UserBTTV( json['id'] as String, json['name'] as String, json['displayName'] as String, json['providerId'] as String, ); EmoteBTTVChannel _$EmoteBTTVChannelFromJson(Map json) => EmoteBTTVChannel( json['id'] as String, (json['bots'] as List).map((e) => e as String).toList(), (json['channelEmotes'] as List) .map((e) => EmoteBTTV.fromJson(e as Map)) .toList(), (json['sharedEmotes'] as List) .map((e) => EmoteBTTV.fromJson(e as Map)) .toList(), ); RoomFFZ _$RoomFFZFromJson(Map json) => RoomFFZ( json['set'] as int, json['moderator_badge'] as String?, json['vip_badge'] == null ? null : ImagesFFZ.fromJson(json['vip_badge'] as Map), json['mod_urls'] == null ? null : ImagesFFZ.fromJson(json['mod_urls'] as Map), ); ImagesFFZ _$ImagesFFZFromJson(Map json) => ImagesFFZ( json['1'] as String, json['2'] as String?, json['4'] as String?, ); EmoteFFZ _$EmoteFFZFromJson(Map json) => EmoteFFZ( json['id'] as int, json['name'] as String, json['height'] as int, json['width'] as int, OwnerFFZ.fromJson(json['owner'] as Map), ImagesFFZ.fromJson(json['urls'] as Map), ); OwnerFFZ _$OwnerFFZFromJson(Map json) => OwnerFFZ( json['_id'] as int, json['name'] as String, json['display_name'] as String, ); Role7TV _$Role7TVFromJson(Map 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 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), ); Emote7TV _$Emote7TVFromJson(Map json) => Emote7TV( json['id'] as String, json['name'] as String, json['owner'] == null ? null : Owner7TV.fromJson(json['owner'] as Map), json['visibility'] as int, (json['visibility_simple'] as List) .map((e) => e as String) .toList(), json['mime'] as String, json['status'] as int, (json['width'] as List).map((e) => e as int).toList(), (json['height'] as List).map((e) => e as int).toList(), (json['urls'] as List) .map((e) => (e as List).map((e) => e as String).toList()) .toList(), ); Emote _$EmoteFromJson(Map json) => Emote( name: json['name'] as String, width: json['width'] as int?, height: json['height'] as int?, zeroWidth: json['zeroWidth'] as bool, url: json['url'] as String, type: $enumDecode(_$EmoteTypeEnumMap, json['type']), ownerId: json['ownerId'] as String?, ); Map _$EmoteToJson(Emote instance) => { 'name': instance.name, 'width': instance.width, 'height': instance.height, 'zeroWidth': instance.zeroWidth, 'url': instance.url, 'type': _$EmoteTypeEnumMap[instance.type]!, 'ownerId': instance.ownerId, }; const _$EmoteTypeEnumMap = { EmoteType.twitchBits: 'twitchBits', EmoteType.twitchFollower: 'twitchFollower', EmoteType.twitchSub: 'twitchSub', EmoteType.twitchGlobal: 'twitchGlobal', EmoteType.twitchUnlocked: 'twitchUnlocked', EmoteType.twitchChannel: 'twitchChannel', EmoteType.ffzGlobal: 'ffzGlobal', EmoteType.ffzChannel: 'ffzChannel', EmoteType.bttvGlobal: 'bttvGlobal', EmoteType.bttvChannel: 'bttvChannel', EmoteType.bttvShared: 'bttvShared', EmoteType.sevenTVGlobal: 'sevenTVGlobal', EmoteType.sevenTVChannel: 'sevenTVChannel', };