public static Tag FromJson(VkResponse response)
{
var result = new Tag
{
Id = response["tag_id"],
TaggedName = response["tagged_name"],
UserId = response["user_id"] ?? response["uid"],
PlacerId = response["placer_id"],
Date = response["tag_created"] ?? response["date"],
IsViewed = response["viewed"],
X = response["x"],
Y = response["y"],
X2 = response["x2"],
Y2 = response["y2"]
};
return result;
}