export class Convert { description param { string } json return { * } public static jsonToModel < T > ( json ) { return JSON . parse ( json ) as T ; } description param { any } model return { * } public static modelToJson ( model ) { return JSON . stringify ( model ) ; } }