export default class ListData {
    constructor(obj) {
        this.data = obj.data;
        this.count = obj.count;
        this.skip = obj.skip;
        this.limit = obj.limit;
        this.hasMore = obj.hasMore;
    }
    toJSON() {
        const json = {
            data: this.data,
            count: this.count.toNumber(),
            skip: this.skip.toNumber(),
            limit: this.limit.toNumber(),
        };
        if (this.hasMore !== undefined) {
            json["hasMore"] = this.hasMore;
        }
        return json;
    }
}
//# sourceMappingURL=ListData.js.map