root_field_py_str
No overview available.
def root_field_py_str(
field: Field,
indent: int
) - > string
Generates a Python-compatible string representation of a root field, typically used for code generation or serialization of data structures.
Parameters
| Name | Type | Description |
|---|---|---|
| field | Field | The field object containing metadata and value information to be converted into a string. |
| indent | int | The number of spaces to use for indentation in the resulting string output. |
Returns
| Type | Description |
|---|---|
string | The formatted Python string representing the root field's structure and value. |