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

FromJson() public static method

Разобрать из json.
public static FromJson ( VkResponse response ) : University
response VkResponse Ответ сервера.
return University
        public static University FromJson(VkResponse response)
        {
            return new University
            {
                Id = response["id"],
                Country = response["country"],
                City = response["city"],
                Name = response["name"] ?? response["title"],
                Faculty = response["faculty"],
                FacultyName = response["faculty_name"],
                Chair = response["chair"],
                ChairName = response["chair_name"],
                Graduation = response["graduation"],

                // установлено экcпериментальным путем
                EducationForm = response["education_form"],
                EducationStatus = response["education_status"]
            };
        }
University