Пример #1
0
 public object Deserialize(string payload, Type objectType)
 {
     CheckoutUtils.ValidateParams("payload", payload);
     return(JsonConvert.DeserializeObject(payload, objectType, _serializerSettings));
 }
Пример #2
0
 public string Serialize(object payload)
 {
     CheckoutUtils.ValidateParams("payload", payload);
     return(JsonConvert.SerializeObject(payload, _serializerSettings));
 }