diff --git a/src/main/java/com/amihaiemil/eoyaml/YamlMapping.java b/src/main/java/com/amihaiemil/eoyaml/YamlMapping.java index c97c2526..1e5e3dee 100644 --- a/src/main/java/com/amihaiemil/eoyaml/YamlMapping.java +++ b/src/main/java/com/amihaiemil/eoyaml/YamlMapping.java @@ -518,4 +518,17 @@ default List children() { default JsonObject toJsonObject() { return (JsonObject) this.accept(new YamlToJsonVisitor()); } + + /** + * Turn this YamlMapping to a given Object type ("loading"). + * @param clazz Class type of the Object into which this YamlMapping should + * be loaded. + * @param Type of the Object, + * @return Object into which this YamlMapping is loaded. + * @todo #323:60min Implement this method similarly to toJsonObject(), + * using a visitor. + */ + default T toObject(final Class clazz) { + return null; + } }