@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
24 lines (23 loc) • 742 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaginationResponse = void 0;
const Mapper_1 = require("../common/Mapper");
/**
* @export
* @class PaginationResponse
*/
class PaginationResponse {
constructor(obj, type) {
if (!obj) {
return;
}
this.totalCount = (0, Mapper_1.map)(obj.totalCount);
this.offset = (0, Mapper_1.map)(obj.offset);
this.limit = (0, Mapper_1.map)(obj.limit);
this.previous = (0, Mapper_1.map)(obj.previous);
this.next = (0, Mapper_1.map)(obj.next);
this.items = (0, Mapper_1.mapArray)(obj.items, type);
}
}
exports.PaginationResponse = PaginationResponse;
exports.default = PaginationResponse;