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

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

export function DtoLabelResponseFromJSON(json: any): DtoLabelResponse {
  return DtoLabelResponseFromJSONTyped(json, false);
}

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

export function DtoLabelResponseToJSON(json: any): DtoLabelResponse {
  return DtoLabelResponseToJSONTyped(json, false);
}

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

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