asdf_pydantic.examples.tree
===========================

.. py:module:: asdf_pydantic.examples.tree


Classes
-------

.. autoapisummary::

   asdf_pydantic.examples.tree.Node
   asdf_pydantic.examples.tree.AsdfTreeNode


Module Contents
---------------

.. py:class:: Node

   Bases: :py:obj:`pydantic.BaseModel`


   .. py:attribute:: child
      :type:  Optional[Node]
      :value: None



.. py:class:: AsdfTreeNode

   Bases: :py:obj:`Node`, :py:obj:`asdf_pydantic.AsdfPydanticModel`


   ASDF Serialization and Deserialization:
       Serialize to ASDF yaml tree is done with the
       py:classmethod`AsdfPydanticModel.asdf_yaml_tree()` and deserialize to an
       AsdfPydanticModel object with py:meth`AsdfPydanticModel.parse_obj()`.


   .. py:attribute:: _tag
      :value: 'asdf://asdf-pydantic/examples/tags/tree-node-1.0.0'



   .. py:attribute:: child
      :type:  Optional[Union[AsdfTreeNode, Node]]
      :value: None



