import{List as r}from"../utils/List.mjs";function e(e){return{fromPlainObject:n=>(e(n,{enter(e){e.children&&e.children instanceof r==!1&&(e.children=(new r).fromArray(e.children))}}),n),toPlainObject:n=>(e(n,{leave(e){e.children&&e.children instanceof r&&(e.children=e.children.toArray())}}),n)}}export{e as createConvertor};