From 590476fc78c09a36bdb1094fa679837fe404b991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20R=C4=99bacz?= Date: Mon, 19 Jul 2021 00:03:04 +0200 Subject: [PATCH 1/2] Update track.dart --- lib/models/track.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/track.dart b/lib/models/track.dart index dd58a44f..8a55af9e 100644 --- a/lib/models/track.dart +++ b/lib/models/track.dart @@ -35,7 +35,7 @@ class Track { final String name; final String uri; @JsonKey(name: 'linked_from_uri') - final String linkedFromUri; + final String? linkedFromUri; factory Track.fromJson(Map json) => _$TrackFromJson(json); From 92829ad5eae4e0f9eefdf303d8577e5de5ca579d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20R=C4=99bacz?= Date: Mon, 19 Jul 2021 00:10:25 +0200 Subject: [PATCH 2/2] Update track.g.dart --- lib/models/track.g.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/track.g.dart b/lib/models/track.g.dart index 83930ca1..c57adacf 100644 --- a/lib/models/track.g.dart +++ b/lib/models/track.g.dart @@ -17,7 +17,7 @@ Track _$TrackFromJson(Map json) { ImageUri.fromJson(json['image_id'] as Map), json['name'] as String, json['uri'] as String, - json['linked_from_uri'] as String, + json['linked_from_uri'] as String?, isEpisode: json['is_episode'] as bool, isPodcast: json['is_podcast'] as bool, );