@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
11 lines (10 loc) • 442 B
text/typescript
import { CreatedOrUpdatedByResponse } from '@/models/api/CreatedOrUpdatedByResponse'
import { CreatedOrUpdatedBy } from '@/models/CreatedOrUpdatedBy'
import { MapFunction } from '@/services/Mapper'
export const mapCreatedOrUpdatedByResponseToCreatedOrUpdatedBy: MapFunction<CreatedOrUpdatedByResponse, CreatedOrUpdatedBy> = function(source) {
return {
id: source.id,
displayValue: source.display_value,
type: source.type,
}
}