Skip to content

The platform for continuously improving AI agents.

1.5 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';
/**
 *
 * @export
 * @interface ConsentRedirect
 */
export interface ConsentRedirect {
    /**
     *
     * @type {string}
     * @memberof ConsentRedirect
     */
    redirectUrl: string;
}

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

export function ConsentRedirectFromJSON(json: any): ConsentRedirect {
    return ConsentRedirectFromJSONTyped(json, false);
}

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

        'redirectUrl': json['redirect_url'],
    };
}

export function ConsentRedirectToJSON(json: any): ConsentRedirect {
    return ConsentRedirectToJSONTyped(json, false);
}

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

    return {

        'redirect_url': value['redirectUrl'],
    };
}