Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private convert(data: any, dataType: Model.ClassType): T {
const jsc: JsonConvert = new JsonConvert();
jsc.valueCheckingMode = ValueCheckingMode.DISALLOW_NULL; // never allow null
return jsc.deserialize(data, dataType);
}
constructor() {
CloudflareAuthenticator.init();
this.http = new HttpClient();
this.requestOptions = {
agent: false,
headers: {},
method: 'GET'
};
this.jsc = new JsonConvert();
}