import { Addon } from "./addon" ; import { Cost } from "./cost" ; import { SetId } from "./set-id" ; export class Event implements Addon { constructor ( readonly id , readonly shortId , readonly setId , readonly name , readonly cost , readonly isActionSupplier , readonly isBuySupplier , readonly isDrawer , readonly isReaction , readonly isTrashing ) { } public static fromJson ( json ) { return new Event ( json [ "id" ] , json [ "shortId" ] , json [ "setId" ] , json [ "name" ] , Cost . fromJson ( json [ "cost" ] ) , json [ "isActionSupplier" ] || false , json [ "isBuySupplier" ] || false , json [ "isDrawer" ] || false , json [ "isReaction" ] || false , json [ "isTrashing" ] || false ) ; } }