Пример #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);