VkNet.Model.Comment.FromJson C# (CSharp) Méthode

FromJson() public static méthode

Разобрать из json.
public static FromJson ( VkResponse response ) : Comment
response VkResponse Ответ сервера.
Résultat Comment
        public static Comment FromJson(VkResponse response)
        {
            var comment = new Comment
            {
                Id = response["id"],
                FromId = response["from_id"],
                Date = response["date"],
                Text = response["text"],
                ReplyToUserId = response["reply_to_user"],
                ReplyToCommentId = response["reply_to_comment"],
                Attachments = response["attachments"],

                Likes = response["likes"] // установлено экcпериментальным путем
            };

            return comment;
        }
Comment