VkNet.Model.Attachments.Gift.FromJson C# (CSharp) Method

FromJson() public static method

Разобрать из json.
public static FromJson ( VkResponse response ) : Gift
response VkNet.Utils.VkResponse Ответ сервера.
return Gift
        public static Gift FromJson(VkResponse response)
        {
            var gift = new Gift
            {
                Id = response["id"],
                Thumb48 = response["thumb_48"],
                Thumb96 = response["thumb_96"],
                Thumb256 = response["thumb_256"]
            };

            return gift;
        }