AudioMetadata.fromMap constructor

AudioMetadata.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AudioMetadata.fromMap(Map<String, dynamic> map) {
  return AudioMetadata(
    artist: map['artist'] != null ? map['artist'] as String : null,
    title: map['title'] != null ? map['title'] as String : null,
    album: map['album'] != null ? map['album'] as String : null,
    genre: map['genre'] != null ? map['genre'] as String : null,
    comment: map['comment'] != null ? map['comment'] as String : null,
    date: map['date'] != null ? map['date'] as String : null,
  );
}