//// Static contructor from raw json //static public TumblerResponse fromRawJson(String rawJson) //{ // Dictionary<String, Object> ObjClassDeJsoned = JsonConvert.DeserializeObject<Dictionary<String, Object>>(rawJson); // return new TumblerResponse(ObjClassDeJsoned); //} #region Constructors public IdentityResponse(String height, ResultId result) { Trace.Assert(height != null); Trace.Assert(result != null); this.height = height; this.result = result; }
// Alternate constructor from Json JObject public IdentityResponse(JObject json) { JObject outValue; this.height = (String)json["height"]; outValue = (JObject)json["result"]; this.result = new ResultId(outValue); }