src/model/TestSuiteDetails.ts
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): TestSuiteDetails {
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();
}
}