GitHub

API reference for Field.

Attributes

AttributeTypeDescription
keystr
content_typestr
valuestr
tagLiteral['Field'] = 'Field'

Functions

__init__

__init__(key, content_type, value) -> None
ParameterTypeDescription
keystr
content_typestr
valuestr

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,
    }