ConstructOptionalClass

Create instances of Optional

Constructors

Link copied to clipboard
constructor(scalarResolver: ScalarResolver)

Functions

Link copied to clipboard
open override fun construct(node: Node?): Optional<Any>

Construct an instance, with all the properties injected when it is possible.

Link copied to clipboard
open fun constructRecursive(node: Node, object: Any)

Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself. (no need to implement this method for non-recursive data structures). Fails with a reminder to provide the second step for a recursive structure