/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
/**
 * ServiceConnection Serializer
 * @export
 * @interface ServiceConnectionRequest
 */
export interface ServiceConnectionRequest {
    /**
     * 
     * @type {string}
     * @memberof ServiceConnectionRequest
     */
    name: string;
    /**
     * If enabled, use the local connection. Required Docker socket/Kubernetes Integration
     * @type {boolean}
     * @memberof ServiceConnectionRequest
     */
    local?: boolean;
}

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

export function ServiceConnectionRequestFromJSON(json: any): ServiceConnectionRequest {
    return ServiceConnectionRequestFromJSONTyped(json, false);
}

export function ServiceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceConnectionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
        'local': json['local'] == null ? undefined : json['local'],
    };
}

export function ServiceConnectionRequestToJSON(json: any): ServiceConnectionRequest {
    return ServiceConnectionRequestToJSONTyped(json, false);
}

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

    return {
        
        'name': value['name'],
        'local': value['local'],
    };
}

