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

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

export function DtoUpdateAnnotationRequestFromJSON(
  json: any,
): DtoUpdateAnnotationRequest {
  return DtoUpdateAnnotationRequestFromJSONTyped(json, false);
}

export function DtoUpdateAnnotationRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoUpdateAnnotationRequest {
  if (json == null) {
    return json;
  }
  return {
    key: json["key"] == null ? undefined : json["key"],
    value: json["value"] == null ? undefined : json["value"],
  };
}

export function DtoUpdateAnnotationRequestToJSON(
  json: any,
): DtoUpdateAnnotationRequest {
  return DtoUpdateAnnotationRequestToJSONTyped(json, false);
}

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

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