import { Card } from "./card" ; import { SetId } from "./set-id" ; export class Boon implements Card { constructor ( readonly id , readonly shortId , readonly setId , readonly name ) { } public static fromJson ( json ) { return new Boon ( json [ "id" ] , json [ "shortId" ] , json [ "setId" ] , json [ "name" ] ) ; } }