public ConDepEnvConfig DeSerialize(string json) { if (_crypto.IsEncrypted(json)) { json = _crypto.Decrypt(json); } return(JsonConvert.DeserializeObject <ConDepEnvConfig>(json, JsonSettings)); }
public T DeSerialize(string config) { if (_crypto.IsEncrypted(config)) { config = _crypto.Decrypt(config); } return(JsonConvert.DeserializeObject <T>(config, JsonSettings)); }