Serialize Schema
You can serialize each schema table into dict using following functions.
serialize_schema(data)
Serialize a schema dataclass into dict.
Deprecated
This function is deprecated. Please use serialize_dataclass() instead.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
SchemaTable
|
Schema dataclass. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Serialized dict data. |
Source code in t4_devkit/schema/serialize.py
serialize_schemas(data)
Serialize a list of schema dataclasses into list of dict.
Deprecated
This function is deprecated. Please use serialize_dataclasses() instead.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
list[SchemaTable]
|
List of schema dataclasses. |
required |
Returns:
| Type | Description |
|---|---|
list[dict]
|
Serialized list of dict data. |