/// <summary>parses json into a Configuration</summary> /// <param name="json">json to parse</param> /// <returns>Configuration corresponding to the json</returns> public static Configuration Parse(JObject json) { Configuration configuration = new Configuration(); configuration.ID = (ulong)json["id"]; configuration.Name = (string)json["name"]; configuration.ConfigurationGroupID = (ulong)json["group_id"]; return configuration; }
/// <summary>parses json into a Configuration</summary> /// <param name="json">json to parse</param> /// <returns>Configuration corresponding to the json</returns> public static Configuration Parse(JObject json) { var configuration = new Configuration { JsonFromResponse = json, ID = (ulong)json["id"], Name = (string)json["name"], ConfigurationGroupID = (ulong)json["group_id"], }; return configuration; }