conversion from YDbDocument to Yaml