import { Input } from './input';
import { Output } from 'src/app/core/model/process.description/output';
export class ProcessDetails {
private readonly _title: string;
private readonly _abstractValue: string;
private readonly _identifier: string;
private readonly _inputs: Input[];
private readonly _outputs: Output[];
constructor(processResponse: any) {
if (processResponse != null){
this._title = processResponse.title;
this._abstractValue = processResponse.abstractValue;
this._identifier = processResponse.identifier;
this._inputs = new Array();
processResponse.inputs?.forEach( e => {
this._inputs.push(new Input(e));
});
this._outputs = new Array