AudioItemModel.fromJson constructor

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

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'],
  );
}