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

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

export function DtoAttachCaptainDomainRequestFromJSON(
  json: any,
): DtoAttachCaptainDomainRequest {
  return DtoAttachCaptainDomainRequestFromJSONTyped(json, false);
}

export function DtoAttachCaptainDomainRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoAttachCaptainDomainRequest {
  if (json == null) {
    return json;
  }
  return {
    domain_id: json["domain_id"] == null ? undefined : json["domain_id"],
  };
}

export function DtoAttachCaptainDomainRequestToJSON(
  json: any,
): DtoAttachCaptainDomainRequest {
  return DtoAttachCaptainDomainRequestToJSONTyped(json, false);
}

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

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