Audio.fromJson constructor

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

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']),
  audio: File.fromJson(json['audio']),
);