public override void Deserialize(XElement parentNode, SerializationContext context) { base.Deserialize(parentNode, context); Type = SerializationContext.DecodeContentModelType(parentNode.Attribute("Type").Value); }