/// <summary>parses json into a suite</summary>
 /// <param name="json">json to parse</param>
 /// <returns>suite corresponding to the json</returns>
 public static Suite Parse(JObject json)
 {
     Suite s = new Suite();
     s.ID = (ulong?)json["id"];
     s.Name = (string)json["name"];
     s.Description = (string)json["description"];
     s.ProjectID = (ulong?)json["project_id"];
     s.Url = (string)json["url"];
     return s;
 }
Exemple #2
0
 /// <summary>parses json into a suite</summary>
 /// <param name="json">json to parse</param>
 /// <returns>suite corresponding to the json</returns>
 public static Suite Parse(JObject json)
 {
     var s = new Suite
     {
         JsonFromResponse = json,
         ID = (ulong?)json["id"],
         Name = (string)json["name"],
         Description = (string)json["description"],
         ProjectID = (ulong?)json["project_id"],
         Url = (string)json["url"],
     };
     return s;
 }