public static NewsSearchResult FromJson(VkResponse response)
{
var newsSearchResult = new NewsSearchResult
{
Id = response["id"],
OwnerId = response["owner_id"],
FromId = response["from_id"],
Date = response["date"],
Text = response["text"],
Comments = response["comments"],
Likes = response["likes"],
Attachments = response["attachments"].ToReadOnlyCollectionOf<Attachment>(x => x),
Geo = response["geo"],
SignerId = response["signer_id"],
PostType = response["post_type"]
};
return newsSearchResult;
}