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

FromJson() public static méthode

Разобрать из json.
public static FromJson ( VkResponse response ) : StatsPeriod
response VkNet.Utils.VkResponse Ответ сервера.
Résultat StatsPeriod
        public static StatsPeriod FromJson(VkResponse response)
        {
            var statsPeriod = new StatsPeriod
            {
                Day = DateTime.Parse(response["day"], DateTimeFormatInfo.InvariantInfo),
                Views = response["views"],
                Visitors = response["visitors"],
                Reach = response["reach"],
                ReachSubscribers = response["reach_subscribers"],
                Subscribed = response["subscribed"],
                Unsubscribed = response["unsubscribed"],
                Sex = response["sex"].ToReadOnlyCollectionOf<StatsStruct>(x => x),
                Age = response["age"].ToReadOnlyCollectionOf<StatsStruct>(x => x),
                SexAge = response["sex_age"].ToReadOnlyCollectionOf<StatsStruct>(x => x),
                Cities = response["cities"].ToReadOnlyCollectionOf<StatsStruct>(x => x),
                Countries = response["countries"].ToReadOnlyCollectionOf<StatsStruct>(x => x)
            };

            return statsPeriod;
        }
StatsPeriod