

@staticmethod
def from_event(event):
    e = FrozenEvent(event.get_pdu_json())
    e.internal_metadata = event.internal_metadata
    return e

dataset/ETHPy150Open matrix-org/synapse/synapse/events/__init__.py FrozenEvent.from_event/original