export default class BaseGetterApiConsumer {
    constructor({ defaultSingleObject = {}, itemResponseHandler, } = {}) {
        this.responseHandler = (response) => (Object.assign(Object.assign({}, this.defaultSingleObject), response));
        this.defaultSingleObject = defaultSingleObject;
        if (itemResponseHandler)
            this.userResponseHandler = itemResponseHandler;
    }
    setGetMethod(method) {
        this.getItem = method(this._getItem.bind(this));
        return this;
    }
}
//# sourceMappingURL=base-getter-api-consumer.js.map