serialize method

On this page

serialize

Serializes the current instance to a byte array.

def serialize(self):
    ...

Returns: bytes: A byte array representing the current instance.

Example

# Assuming `field` is a FoundDocumentField instance
data = field.serialize()

See Also

On this page