Fix IcyMetadata decoding.
This commit is contained in:
parent
e60a672722
commit
349271cbaf
|
@ -106,7 +106,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.3.2"
|
version: "0.3.3"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -844,7 +844,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;
|
||||||
|
|
Loading…
Reference in New Issue