public static Poll FromJson(VkResponse response)
{
var poll = new Poll
{
Id = response["id"] ?? response["poll_id"],
OwnerId = response["owner_id"],
Question = response["question"],
Created = response["created"],
Votes = response["votes"],
AnswerId = response["answer_id"],
IsAnonymous = response["anonymous"],
Answers = response["answers"]
};
return poll;
}