INNER CODE UNIT · Swift
fetchAudioMetas
florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:76
func fetchAudioMetas(from: NSDictionary) -> AudioMetas {
//metas
let songTitle = from["song.title"] as? String //can be null
let songArtist = from["song.artist"] as? String //can be null
let songAlbum = from["song.album"] as? String //can be null
let songImage = from["song.image"] as? String //can be null
let songImageType = from["song.imageType"] as? String //can be null
let songImagePackage = from["song.imagePackage"] as? String //can be null
//end-metas
let audioMetas = AudioMetas(
title: songTitle,
artist: songArtist,
album: songAlbum,
image: songImage,
imageType: songImageType,
imagePackage: songImagePackage