export class Point { static fromJSON ( value ) { return Object . assign ( new Point ( null , null ) , value ) ; } constructor ( public x , public y ) { } equals ( other ) { return ! ! other && this . x === other . x && this . y === other . y ; } }