/// <summary>parses json into a suite</summary> /// <param name="json">json to parse</param> /// <returns>suite corresponding to the json</returns> public static CaseType Parse(JObject json) { CaseType ct = new CaseType(); ct.ID = (ulong?)json["id"]; ct.Name = (string)json["name"]; ct.IsDefault = (bool?)json["is_default"]; return ct; }
/// <summary>parses json into a suite</summary> /// <param name="json">json to parse</param> /// <returns>suite corresponding to the json</returns> public static CaseType Parse(JObject json) { CaseType ct = new CaseType(); ct.ID = (ulong?)json["id"]; ct.Name = (string)json["name"]; ct.IsDefault = (bool?)json["is_default"]; return(ct); }
/// <summary>parses json into a suite</summary> /// <param name="json">json to parse</param> /// <returns>suite corresponding to the json</returns> public static CaseType Parse(JObject json) { var ct = new CaseType { JsonFromResponse = json, ID = (ulong?) json["id"], Name = (string) json["name"], IsDefault = (bool?) json["is_default"], }; return ct; }
/// <summary>parses json into a suite</summary> /// <param name="json">json to parse</param> /// <returns>suite corresponding to the json</returns> public static CaseType Parse(JObject json) { var ct = new CaseType { JsonFromResponse = json, ID = (ulong?)json["id"], Name = (string)json["name"], IsDefault = (bool?)json["is_default"], }; return(ct); }