@Injectable() export class API { ... constructor(@Inject(END_POINTS) private _endPoints) { this.endPoints = _endPoints.reduce((acc, current) => { return { …current, …acc }; }, {}); } }