public static Rights ReadFromJObject(JObject o) { if (o == null) return null; var r = new Rights() { Info = o.Value<int>("info") == 1, Trade = o.Value<int>("trade") == 1 }; return r; }
public static Rights ReadFromJObject(JObject o) { if (o == null) { return(null); } var r = new Rights() { Info = o.Value <int>("info") == 1, Trade = o.Value <int>("trade") == 1 }; return(r); }