Skip to content

The platform for continuously improving AI agents.

2.7 KB
Raw Blame
/* tslint:disable */
/* eslint-disable */
/**
 * Overbae API
 * Backend API for the Overclaw / Overmind platform.
 *
 * The version of the OpenAPI document: 2.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';
import type { ProjectInvite } from './ProjectInvite';
import {
    ProjectInviteFromJSON,
    ProjectInviteFromJSONTyped,
    ProjectInviteToJSON,
    ProjectInviteToJSONTyped,
} from './ProjectInvite';

/**
 *
 * @export
 * @interface PaginatedProjectInviteList
 */
export interface PaginatedProjectInviteList {
    /**
     *
     * @type {number}
     * @memberof PaginatedProjectInviteList
     */
    count: number;
    /**
     *
     * @type {string}
     * @memberof PaginatedProjectInviteList
     */
    next?: string | null;
    /**
     *
     * @type {string}
     * @memberof PaginatedProjectInviteList
     */
    previous?: string | null;
    /**
     *
     * @type {Array<ProjectInvite>}
     * @memberof PaginatedProjectInviteList
     */
    results: Array<ProjectInvite>;
}

/**
 * Check if a given object implements the PaginatedProjectInviteList interface.
 */
export function instanceOfPaginatedProjectInviteList(value: object): value is PaginatedProjectInviteList {
    if (!('count' in value) || value['count'] === undefined) return false;
    if (!('results' in value) || value['results'] === undefined) return false;
    return true;
}

export function PaginatedProjectInviteListFromJSON(json: any): PaginatedProjectInviteList {
    return PaginatedProjectInviteListFromJSONTyped(json, false);
}

export function PaginatedProjectInviteListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProjectInviteList {
    if (json == null) {
        return json;
    }
    return {

        'count': json['count'],
        'next': json['next'] == null ? undefined : json['next'],
        'previous': json['previous'] == null ? undefined : json['previous'],
        'results': ((json['results'] as Array<any>).map(ProjectInviteFromJSON)),
    };
}

export function PaginatedProjectInviteListToJSON(json: any): PaginatedProjectInviteList {
    return PaginatedProjectInviteListToJSONTyped(json, false);
}

export function PaginatedProjectInviteListToJSONTyped(value?: PaginatedProjectInviteList | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'count': value['count'],
        'next': value['next'],
        'previous': value['previous'],
        'results': ((value['results'] as Array<any>).map(ProjectInviteToJSON)),
    };
}