FormattedString.to_dictΒΆ

FormattedString.to_dict()

Convert the Meta to a dictionary.

The tree structure is converted to the following form:

{
    attr: value,
    children: {
        name: {**value_meta_attr.__dict__}
    }
}

See also

Meta.from_dict: construct a Meta from a dictionary

Return type

Dict[str, object]