public virtual XElement ToXml()
{
var result = new XElement("WorkspaceItem",
new XAttribute("ID", ID),
new XAttribute("WorkspaceID", WorkspaceID),
new XAttribute("ServerID", ServerID),
new XAttribute("EnvironmentID", EnvironmentID),
new XAttribute("Action", Action),
new XAttribute("ServiceName", ServiceName ?? string.Empty),
new XAttribute("IsWorkflowSaved", IsWorkflowSaved),
new XAttribute("ServiceType", ServiceType ?? string.Empty)
);
return result;
}