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

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

export function DtoTaintResponseFromJSON(json: any): DtoTaintResponse {
  return DtoTaintResponseFromJSONTyped(json, false);
}

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

export function DtoTaintResponseToJSON(json: any): DtoTaintResponse {
  return DtoTaintResponseToJSONTyped(json, false);
}

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

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