to_node


Description:

public static Node to_node (Object obj, Node? parent = null, bool root = true, int? index = null, string? property_name = null)

transform an Yaml.Object to his corresponding Yaml.Node

Parameters:

obj

the obj to transform

parent

the parent node

root

indicates if node must be add to a root node, if true a Yaml.Root node is return

index

for sequence entry anonymous mapping block

property_name

name of property name related to obj