/ src / models / Contact.ts
Contact.ts
 1  import { deserializeWith, rename, t, u } from "desero";
 2  
 3  /**
 4   * Contact information.
 5   * @hideconstructor
 6   */
 7  export class Contact {
 8    @deserializeWith(u.falsyToNull)
 9    email = t.option(t.string());
10  
11    /**
12     * Note that there is no specific format for this field,
13     * so be prepared to receive any phone number format.
14     */
15    @rename("tel")
16    phone = t.string();
17  }