VkNet.Model.Mention.FromJson C# (CSharp) Method

FromJson() public static method

Разобрать из json.
public static FromJson ( VkResponse response ) : Mention
response VkNet.Utils.VkResponse Ответ сервера.
return Mention
        public static Mention FromJson(VkResponse response)
        {
            var mention = new Mention
            {
                Id = response["id"],
                FromId = response["from_id"],
                Date = response["date"],
                Text = response["text"],
                Likes = response["likes"],
                Comments = response["comments"],
                Attachment = response["attachment"],
                Geo = response["geo"],
                CopyOwnerId = response["copy_owner_id"],
                CopyPostId = response["copy_post_id"],
                ToId = response["to_id"],
                PostId = response["post_id"],
                PostType = response["post_type"],
                Reposts = response["reposts"]
            };

            return mention;
        }
Mention