private AnalyticsUserConfiguration(AnalyticsClientConfiguration client, JObject obj) : base(obj) { Client = client; Id = obj.GetString("id"); Email = obj.GetString("email"); Name = obj.GetString("name"); RefreshToken = obj.GetString("refreshToken"); }
/// <summary> /// Parses the specified <code>obj</code> into an instance of <see cref="AnalyticsUserConfiguration"/>. /// </summary> /// <param name="client">The parent client configuration.</param> /// <param name="obj">The instance of <see cref="JObject"/> to be parsed.</param> /// <returns>Returns an instance of <see cref="AnalyticsUserConfiguration"/>.</returns> public static AnalyticsUserConfiguration Parse(AnalyticsClientConfiguration client, JObject obj) { return(obj == null ? null : new AnalyticsUserConfiguration(client, obj)); }