public static MapContentsConfiguration FromString(string str)
 {
     if (string.IsNullOrWhiteSpace(str))
     {
         return(new MapContentsConfiguration());
     }
     else
     {
         return(DataContractSerializationHelper.Deserialize <MapContentsConfiguration>(str));
     }
 }
 public override string ToString()
 {
     return(DataContractSerializationHelper.Serialize <MapContentsConfiguration>(this));
 }