import { JSONObject, TinyType } from 'tiny-types'; import { FileSystemLocation } from '../io'; import { CorrelationId } from './CorrelationId'; import { Name } from './Name'; export class TestSuiteDetails extends TinyType { static fromJSON(o: JSONObject) { return new TestSuiteDetails( Name.fromJSON(o.name as string), FileSystemLocation.fromJSON(o.location as JSONObject), CorrelationId.fromJSON(o.correlationId as string), ); } constructor( public readonly name: Name, public readonly location: FileSystemLocation, public readonly correlationId: CorrelationId = CorrelationId.create(), ) { super(); } }