public object Deserialize(string payload, Type objectType) { CheckoutUtils.ValidateParams("payload", payload); return(JsonConvert.DeserializeObject(payload, objectType, _serializerSettings)); }
public string Serialize(object payload) { CheckoutUtils.ValidateParams("payload", payload); return(JsonConvert.SerializeObject(payload, _serializerSettings)); }