public JToken JsonSave() { var result = new JObject() { new JProperty(JsonNames.PatternElementType, m_type.ToString()), new JProperty(JsonNames.Source, m_source.JsonSave()), new JProperty(JsonNames.Target, m_target.JsonSave()), new JProperty(JsonNames.Id, m_id) }; return(result); }