FromJson and FromXml for Event