Merge branch 'master' into audio-session

This commit is contained in:
Ryan Heise 2020-08-21 12:47:16 +10:00
commit eae3c1b79b
1 changed files with 6 additions and 1 deletions

View File

@ -868,7 +868,12 @@ class IcyMetadata {
IcyMetadata({@required this.info, @required this.headers}); IcyMetadata({@required this.info, @required this.headers});
IcyMetadata.fromJson(Map json) IcyMetadata.fromJson(Map json)
: this(info: json['info'], headers: json['headers']); : this(
info: json['info'] == null ? null : IcyInfo.fromJson(json['info']),
headers: json['headers'] == null
? null
: IcyHeaders.fromJson(json['headers']),
);
@override @override
int get hashCode => info.hashCode ^ headers.hashCode; int get hashCode => info.hashCode ^ headers.hashCode;