/* 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 HandlersOrgUpdateReq
 */
export interface HandlersOrgUpdateReq {
  /**
   *
   * @type {string}
   * @memberof HandlersOrgUpdateReq
   */
  domain?: string;
  /**
   *
   * @type {string}
   * @memberof HandlersOrgUpdateReq
   */
  name?: string;
}

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

export function HandlersOrgUpdateReqFromJSON(json: any): HandlersOrgUpdateReq {
  return HandlersOrgUpdateReqFromJSONTyped(json, false);
}

export function HandlersOrgUpdateReqFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): HandlersOrgUpdateReq {
  if (json == null) {
    return json;
  }
  return {
    domain: json["domain"] == null ? undefined : json["domain"],
    name: json["name"] == null ? undefined : json["name"],
  };
}

export function HandlersOrgUpdateReqToJSON(json: any): HandlersOrgUpdateReq {
  return HandlersOrgUpdateReqToJSONTyped(json, false);
}

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

  return {
    domain: value["domain"],
    name: value["name"],
  };
}
