Added deserialization to event resource.