import { Contact } from '@shared/models'; | |
export class ModifiedContacts { | |
public searchText: string = null; | |
public contactTypeId: string = ''; | |
public sort: string = null; | |
public constructor(data: any = null) { | |
Object.keys(data || {}) | |
.filter(property => this.hasOwnProperty(property)) | |
.forEach(property => (this[property] = data[property])); | |
} | |
} | |