public static Document FromJson(VkResponse response)
{
var document = new Document
{
Id = response["doc_id"] ?? response["did"] ?? response["id"],
OwnerId = response["owner_id"],
Title = response["title"],
Size = response["size"],
Ext = response["ext"],
Uri = response["url"],
Photo100 = response["photo_100"],
Photo130 = response["photo_130"],
AccessKey = response["access_key"],
Date = response["date"],
Preview = response["preview"]
};
return document;
}