I'm new to typescript, I'm using it to build angular apps. sometimes I see models like this
export interface Item { name: string } and sometimes I see this
export class Lesson { constructor( public $key:string) } with static methods like
static fromJson({$key}) {} whats the benefit?