public static Audio FromJson(VkResponse response)
{
var audio = new Audio
{
Id = response["audio_id"] ?? response["aid"] ?? response["id"],
OwnerId = response["owner_id"],
Artist = response["artist"],
Title = response["title"],
Duration = response["duration"],
Uri = response["url"],
LyricsId = response["lyrics_id"],
AlbumId = response["album_id"],
Genre = response["genre_id"] ?? response["genre"],
Date = response["date"]
};
return audio;
}