export type IFlow = { id: string, created: Date, description: string, updated: Date, name: string, } export class Flow implements IFlow { public readonly id: string public readonly kind = 'flow' public readonly created: Date public readonly updated: Date public name: string public description: string public constructor(flow: IFlow) { this.id = flow.id this.created = flow.created this.updated = flow.updated this.name = flow.name this.description = flow.description } }