public static Field26B fromJson(string json) { Field26B field = new Field26B(); JsonParser parser = new JsonParser(); JsonObject jsonObject = (JsonObject)parser.parse(json); if (jsonObject.get("number") != null) { field.Component1 = jsonObject.get("number").AsString; } return(field); }