'Create an event database object from a native event.'

@staticmethod
def from_event(event):

    return Events(event_type=event.event_type, event_data=json.dumps(event.data, cls=JSONEncoder), origin=str(event.origin), time_fired=event.time_fired)
