AudioFile.fromMap constructor
Create an AudioFile from a map
Implementation
factory AudioFile.fromMap(Map<String, dynamic> map) {
return AudioFile(
id: map['id'] as String,
name: map['name'] as String,
size: map['size'] as int,
path: map['path'] as String,
uri: map['uri'] as String,
dateAdded: map['dateAdded'] as int,
mimeType: map['mimeType'] as String,
duration: map['duration'] as int,
artist: map['artist'] as String,
album: map['album'] as String,
);
}