/* tslint:disable */
/* eslint-disable */
/**
 * AutoGlue API
 * API for managing K3s clusters across cloud providers
 *
 * The version of the OpenAPI document: dev
 *
 *
 * 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 DtoSetKubeconfigRequest
 */
export interface DtoSetKubeconfigRequest {
  /**
   *
   * @type {string}
   * @memberof DtoSetKubeconfigRequest
   */
  kubeconfig?: string;
}

/**
 * Check if a given object implements the DtoSetKubeconfigRequest interface.
 */
export function instanceOfDtoSetKubeconfigRequest(
  value: object,
): value is DtoSetKubeconfigRequest {
  return true;
}

export function DtoSetKubeconfigRequestFromJSON(
  json: any,
): DtoSetKubeconfigRequest {
  return DtoSetKubeconfigRequestFromJSONTyped(json, false);
}

export function DtoSetKubeconfigRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoSetKubeconfigRequest {
  if (json == null) {
    return json;
  }
  return {
    kubeconfig: json["kubeconfig"] == null ? undefined : json["kubeconfig"],
  };
}

export function DtoSetKubeconfigRequestToJSON(
  json: any,
): DtoSetKubeconfigRequest {
  return DtoSetKubeconfigRequestToJSONTyped(json, false);
}

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

  return {
    kubeconfig: value["kubeconfig"],
  };
}
