/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface PageInfo */ export interface PageInfo { /** * * @type {string} * @memberof PageInfo */ nextCursor: string | null; /** * * @type {boolean} * @memberof PageInfo */ hasMore: boolean; /** * * @type {number} * @memberof PageInfo */ limit: number; } /** * Check if a given object implements the PageInfo interface. */ export function instanceOfPageInfo(value: object): value is PageInfo { if (!('nextCursor' in value) || value['nextCursor'] === undefined) return false; if (!('hasMore' in value) || value['hasMore'] === undefined) return false; if (!('limit' in value) || value['limit'] === undefined) return false; return true; } export function PageInfoFromJSON(json: any): PageInfo { return PageInfoFromJSONTyped(json, false); } export function PageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageInfo { if (json == null) { return json; } return { 'nextCursor': json['nextCursor'], 'hasMore': json['hasMore'], 'limit': json['limit'], }; } export function PageInfoToJSON(json: any): PageInfo { return PageInfoToJSONTyped(json, false); } export function PageInfoToJSONTyped(value?: PageInfo | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'nextCursor': value['nextCursor'], 'hasMore': value['hasMore'], 'limit': value['limit'], }; }