encodeFields

public abstract Map<String, Object> encodeFields()

Encodes the message content into serializable key-value pairs.

Called when sending a message. Note: localPath and remoteUrl are handled automatically by the SDK and should not be included here. Only encode your custom business fields.

Return

a map of field names to their serializable values