Deezer.fromJson constructor

Deezer.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Deezer.fromJson(Map<String, dynamic> json) {
  deezerAlbum = json['deezer_album'] != null
      ? DeezerAlbum.fromJson(json['deezer_album'])
      : null;
  if (json['artists'] != null) {
    deezerArtists = <DeezerArtists>[];
    json['artists'].forEach((v) {
      deezerArtists?.add(DeezerArtists.fromJson(v));
    });
  }
  track = json['track'] != null ? Track.fromJson(json['track']) : null;
}