private void WriteXmlDeserialize(CodeWriter writer, ObjectType model, XmlElementSerialization serialization) { using (writer.Scope($"internal static {model.Type} Deserialize{model.Declaration.Name}({typeof(XElement)} element)")) { writer.ToDeserializeCall( serialization, w => w.AppendRaw("element"), (w, v) => w.Line($"return {v};"), true); } writer.Line(); }