/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * GoogleChromeConnector Serializer
 * @export
 * @interface GoogleChromeConnectorRequest
 */
export interface GoogleChromeConnectorRequest {
    /**
     *
     * @type {string}
     * @memberof GoogleChromeConnectorRequest
     */
    connectorUuid?: string;
    /**
     *
     * @type {string}
     * @memberof GoogleChromeConnectorRequest
     */
    name: string;
    /**
     *
     * @type {boolean}
     * @memberof GoogleChromeConnectorRequest
     */
    enabled?: boolean;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof GoogleChromeConnectorRequest
     */
    credentials: { [key: string]: any };
}

/**
 * Check if a given object implements the GoogleChromeConnectorRequest interface.
 */
export function instanceOfGoogleChromeConnectorRequest(
    value: object,
): value is GoogleChromeConnectorRequest {
    if (!("name" in value) || value["name"] === undefined) return false;
    if (!("credentials" in value) || value["credentials"] === undefined) return false;
    return true;
}

export function GoogleChromeConnectorRequestFromJSON(json: any): GoogleChromeConnectorRequest {
    return GoogleChromeConnectorRequestFromJSONTyped(json, false);
}

export function GoogleChromeConnectorRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): GoogleChromeConnectorRequest {
    if (json == null) {
        return json;
    }
    return {
        connectorUuid: json["connector_uuid"] == null ? undefined : json["connector_uuid"],
        name: json["name"],
        enabled: json["enabled"] == null ? undefined : json["enabled"],
        credentials: json["credentials"],
    };
}

export function GoogleChromeConnectorRequestToJSON(json: any): GoogleChromeConnectorRequest {
    return GoogleChromeConnectorRequestToJSONTyped(json, false);
}

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

    return {
        connector_uuid: value["connectorUuid"],
        name: value["name"],
        enabled: value["enabled"],
        credentials: value["credentials"],
    };
}
