AudioItemModel.fromJson constructor
Create object from JSON
Implementation
factory AudioItemModel.fromJson(Map<String, dynamic> json) {
return AudioItemModel(
title: json['title'] ?? '',
artist: json['artist'] ?? '',
duration: json['duration'],
path: json['path'] ?? '',
image: json['image'],
);
}