Fix 7TV emotes not showing in chat

There was a recent change in the 7TV api that resulted in the `tags`
field returning null. The serializer currently doesn't handle `null`
cases so it was causing a deserialize error.

A simple fix is to make the field nullable, but I've decided to remove
it completely since it's not used anywhere in the app.
This commit is contained in:
Tommy Chow 2022-07-29 11:58:35 -04:00
parent 84cee1cede
commit 898a1c2d00
2 changed files with 0 additions and 3 deletions

View file

@ -233,7 +233,6 @@ class Emote7TV {
final List<String> visibilitySimple;
final String mime;
final int status;
final List<String> tags;
final List<int> width;
final List<int> height;
final List<List<String>> urls;
@ -246,7 +245,6 @@ class Emote7TV {
this.visibilitySimple,
this.mime,
this.status,
this.tags,
this.width,
this.height,
this.urls,

View file

@ -116,7 +116,6 @@ Emote7TV _$Emote7TVFromJson(Map<String, dynamic> json) => Emote7TV(
.toList(),
json['mime'] as String,
json['status'] as int,
(json['tags'] as List<dynamic>).map((e) => e as String).toList(),
(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>)