export class Customer { /** Default image when a customer has no photo link. */ static missingPerson = 'assets/missing-person.png' ; id : number ; first : string ; last : string ; city = '' ; birthDate ? : Date ; photo ? : string ; isDeleted ? : boolean ; pet ? : string ; secretSauce ? : string ; /** Create a default new Customer, merging in properties of the optional customer argument */ static create ( id , customer = { } ) { const newCustomer = Object . assign ( new Customer ( ) , { first : 'New' , last : 'Customer ' + id , photo : Customer . missingPerson , ... customer , id } ) ; return newCustomer ; } }