public static T FromXml <T>(this string json)
 {
     return(XmlSerializer.DeserializeFromString <T>(json));
 }
 public static string ToXml <T>(this T obj)
 {
     return(XmlSerializer.SerializeToString(obj));
 }