import { Addon } from "./addon" ; import { Cost } from "./cost" ; import { SetId } from "./set-id" ; export class Way implements Addon { constructor ( readonly id , readonly shortId , readonly setId , readonly name , readonly cost ) { } public static fromJson ( json ) { return new Way ( json [ "id" ] , json [ "shortId" ] , json [ "setId" ] , json [ "name" ] , new Cost ( 0 , 0 , 0 ) ) ; } }