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);
}