/* 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 HandlersUpdateMeRequest
 */
export interface HandlersUpdateMeRequest {
  /**
   *
   * @type {string}
   * @memberof HandlersUpdateMeRequest
   */
  display_name?: string;
}

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

export function HandlersUpdateMeRequestFromJSON(
  json: any,
): HandlersUpdateMeRequest {
  return HandlersUpdateMeRequestFromJSONTyped(json, false);
}

export function HandlersUpdateMeRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): HandlersUpdateMeRequest {
  if (json == null) {
    return json;
  }
  return {
    display_name:
      json["display_name"] == null ? undefined : json["display_name"],
  };
}

export function HandlersUpdateMeRequestToJSON(
  json: any,
): HandlersUpdateMeRequest {
  return HandlersUpdateMeRequestToJSONTyped(json, false);
}

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

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