Attributes#
| Attribute | Type | Description |
|---|---|---|
key | str | |
content_type | str | |
value | str | |
tag | Literal['Field'] = 'Field' |
Functions#
__init__#
__init__(key, content_type, value) -> None| Parameter | Type | Description |
|---|---|---|
key | str | |
content_type | str | |
value | str |
to_json#
to_json() -> dict[str, object]Returns dict[str, object]
def to_json(self) -> dict[str, object]:
return {
"_id": "@effect/platform/Multipart/Part",
"_tag": "Field",
"key": self.key,
"contentType": self.content_type,
"value": self.value,
}