예제 #1
0
 public JsonModelParser(string json)
 {
     Json  = json ?? throw new System.ArgumentNullException(nameof(json));
     _root = (JContainer)JToken.Parse(json);
     Model = new Welcome();
 }
예제 #2
0
 public static string ToJson(this Welcome self) => JsonConvert.SerializeObject(self, Converter.Settings);