@herlinus/coloquent
Version:
Library for retrieving model objects from a JSON-API, with a fluent syntax inspired by Laravel Eloquent.
20 lines • 480 B
JavaScript
export class Response {
constructor(query, axiosResponse) {
this._query = query;
this.axiosResponse = axiosResponse;
}
getHttpClientResponse() {
return this.axiosResponse;
}
get query() {
return this._query;
}
get includeTree() {
return this.query !== undefined
?
this.query.includeTree
:
{};
}
}
//# sourceMappingURL=Response.js.map