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

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

export function DtoCreateAnnotationRequestFromJSON(
  json: any,
): DtoCreateAnnotationRequest {
  return DtoCreateAnnotationRequestFromJSONTyped(json, false);
}

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

export function DtoCreateAnnotationRequestToJSON(
  json: any,
): DtoCreateAnnotationRequest {
  return DtoCreateAnnotationRequestToJSONTyped(json, false);
}

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

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