Service.ts
1 import { deserializeWith, rename, t, u } from "desero"; 2 3 /** 4 * @hideconstructor 5 */ 6 export class Service { 7 @deserializeWith(u.falsyToNull) 8 @rename("short_desc") 9 description = t.option(t.string()); 10 11 id = t.string(); 12 13 @rename("image") 14 imageUrl = t.string(); 15 16 title = t.string(); 17 18 @rename("link") 19 url = t.string(); 20 }