I receive a JSON object from an AJAX call to a REST server. This object has property names that match my TypeScript class (this is a follow-on to this question).
Wha
you can do like below
export interface Instance { id?:string; name?:string; type:string; }
and
var instance: Instance = ({ id: null, name: '', type: '' });