import { SetId } from "./set-id" ; export class DominionKingdom { constructor ( readonly name , readonly setIds , readonly supplyIds , readonly baneCardId , readonly eventIds , readonly landmarkIds , readonly projectIds , readonly boonIds , readonly wayIds , readonly metadata ) { } public static fromJson ( json ) { return new DominionKingdom ( json [ "name" ] , json [ "sets" ] , json [ "supply" ] || [ ] , json [ "bane" ] || null , json [ "events" ] || [ ] , json [ "landmarks" ] || [ ] , json [ "projects" ] || [ ] , json [ "boons" ] || [ ] , json [ "ways" ] || [ ] , Metadata . fromJson ( json [ "metadata" ] ) ) ; } } export class Metadata { constructor ( readonly useColonies , readonly useShelters ) { } public static fromJson ( json ) { return new Metadata ( json ? json [ "colonies" ] : false , json ? json [ "shelters" ] : false ) ; } }