blob: 19ceeb50213b3d503f736ed337d419a5ee2b77e7 [file] [log] [blame]
export class Contact {
public id: string = null;
public name: string = null;
public firstName: string = null;
public lastName: string = null;
public contactType: string = null;
public note: string = null;
public street: string = null;
public housenumber: string = null;
public community: string = null;
public companyName: string = null;
public companyType: string = null;
public fkContactId: number = null;
public fkSalutationId: number = null;
public salutationType: string = null;
public department: string = null;
public constructor(data: any = null) {
Object.keys(data || {})
.filter(property => this.hasOwnProperty(property))
.forEach(property => (this[property] = data[property]));
}
}