1 2 3 4 5 6 7 8 9 10 11 12 13 14
interface OwningEntityResponse { id: string, name: string } export class OwningEntity { id: string; name: string; constructor(serviceJson: OwningEntityResponse){ this.id = serviceJson.id; this.name = serviceJson.name; } }