Serialize the experience to bytes.
(self)
| 299 | self.custom_fields = custom_fields or [] |
| 300 | |
| 301 | def serialize(self) -> bytes: |
| 302 | """Serialize the experience to bytes.""" |
| 303 | return self.serialize_many([self]) |
| 304 | |
| 305 | @classmethod |
| 306 | def deserialize(cls, data: bytes) -> Experience: |