import { Pipe, PipeTransform } from '@angular/core';
import { DisplayInfoDTO } from '@swagger/eis';
import { Task } from '../defs';
import { fromDisplayInfoToTask } from '../../../store/branch/task-calendar/mappings';

@Pipe({
  name: 'displayInfoDTOtoTask',
})
export class DisplayInfoDTOtoTaskPipe implements PipeTransform {
  transform(task: DisplayInfoDTO): Task {
    return fromDisplayInfoToTask(task);
  }
}
