UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

25 lines (24 loc) 818 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaginationResponse = void 0; var Mapper_1 = require("../common/Mapper"); /** * @export * @class PaginationResponse */ var PaginationResponse = /** @class */ (function () { function PaginationResponse(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); } return PaginationResponse; }()); exports.PaginationResponse = PaginationResponse; exports.default = PaginationResponse;