// GENERATED CODE - DO NOT MODIFY BY HAND part of 'emotes.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** EmoteTwitch _$EmoteTwitchFromJson(Map json) => EmoteTwitch( json['id'] as String, json['name'] as String, json['emote_type'] as String?, json['owner_id'] as String?, ); EmoteBTTV _$EmoteBTTVFromJson(Map json) => EmoteBTTV( json['id'] as String, json['code'] as String, ); EmoteBTTVChannel _$EmoteBTTVChannelFromJson(Map json) => EmoteBTTVChannel( (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 num).toInt(), 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?, ); OwnerFFZ _$OwnerFFZFromJson(Map json) => OwnerFFZ( displayName: json['display_name'] as String, name: json['name'] as String, ); EmoteFFZ _$EmoteFFZFromJson(Map json) => EmoteFFZ( json['name'] as String, (json['height'] as num).toInt(), (json['width'] as num).toInt(), OwnerFFZ.fromJson(json['owner'] as Map), ImagesFFZ.fromJson(json['urls'] as Map), json['animated'] == null ? null : ImagesFFZ.fromJson(json['animated'] as Map), ); Emote7TV _$Emote7TVFromJson(Map json) => Emote7TV( json['id'] as String, json['name'] as String, Emote7TVData.fromJson(json['data'] as Map), ); Owner7TV _$Owner7TVFromJson(Map json) => Owner7TV( username: json['username'] as String, displayName: json['display_name'] as String, ); Emote7TVData _$Emote7TVDataFromJson(Map json) => Emote7TVData( json['id'] as String, json['name'] as String, (json['flags'] as num).toInt(), json['owner'] == null ? null : Owner7TV.fromJson(json['owner'] as Map), Emote7TVHost.fromJson(json['host'] as Map), ); Emote7TVHost _$Emote7TVHostFromJson(Map json) => Emote7TVHost( json['url'] as String, (json['files'] as List) .map((e) => Emote7TVFile.fromJson(e as Map)) .toList(), ); Emote7TVFile _$Emote7TVFileFromJson(Map json) => Emote7TVFile( json['name'] as String, (json['width'] as num).toInt(), (json['height'] as num).toInt(), json['format'] as String, ); Emote _$EmoteFromJson(Map json) => Emote( name: json['name'] as String, realName: json['realName'] as String?, width: (json['width'] as num?)?.toInt(), height: (json['height'] as num?)?.toInt(), zeroWidth: json['zeroWidth'] as bool, url: json['url'] as String, type: $enumDecode(_$EmoteTypeEnumMap, json['type']), ownerDisplayName: json['ownerDisplayName'] as String?, ownerUsername: json['ownerUsername'] as String?, ownerId: json['ownerId'] as String?, ); Map _$EmoteToJson(Emote instance) => { 'name': instance.name, 'realName': instance.realName, 'width': instance.width, 'height': instance.height, 'zeroWidth': instance.zeroWidth, 'url': instance.url, 'type': _$EmoteTypeEnumMap[instance.type]!, 'ownerDisplayName': instance.ownerDisplayName, 'ownerUsername': instance.ownerUsername, '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', };