Audio.fromJson constructor
Parse from a json
Implementation
factory Audio.fromJson(Map<String, dynamic> json) => Audio(
duration: json['duration'],
title: json['title'],
performer: json['performer'],
fileName: json['file_name'],
mimeType: json['mime_type'],
albumCoverMinithumbnail: json['album_cover_minithumbnail'] == null
? null
: Minithumbnail.fromJson(json['album_cover_minithumbnail']),
albumCoverThumbnail: json['album_cover_thumbnail'] == null
? null
: Thumbnail.fromJson(json['album_cover_thumbnail']),
externalAlbumCovers: List<Thumbnail>.from(
(json['external_album_covers'] ?? [])
.map((item) => Thumbnail.fromJson(item))
.toList()),
audio: File.fromJson(json['audio']),
);