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

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

export function DtoCreateLabelRequestFromJSON(
  json: any,
): DtoCreateLabelRequest {
  return DtoCreateLabelRequestFromJSONTyped(json, false);
}

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

export function DtoCreateLabelRequestToJSON(json: any): DtoCreateLabelRequest {
  return DtoCreateLabelRequestToJSONTyped(json, false);
}

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

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