Music.fromJson constructor
Implementation
Music.fromJson(Map<String, dynamic> json) {
label = json['label'];
externalMetadata = json['external_metadata'] != null
? ExternalMetadata.fromJson(json['external_metadata'])
: null;
acrid = json['acrid'];
album = json['album'] != null ? Album.fromJson(json['album']) : null;
resultFrom = json['result_from'];
if (json['artists'] != null) {
artists = <Artists>[];
json['artists'].forEach((v) {
artists?.add(Artists.fromJson(v));
});
}
title = json['title'];
durationMs = json['duration_ms'];
releaseDate = json['release_date'];
score = json['score'];
playOffsetMs = json['play_offset_ms'];
}