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

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

export function DtoAttachRecordSetRequestFromJSON(
  json: any,
): DtoAttachRecordSetRequest {
  return DtoAttachRecordSetRequestFromJSONTyped(json, false);
}

export function DtoAttachRecordSetRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoAttachRecordSetRequest {
  if (json == null) {
    return json;
  }
  return {
    record_set_id:
      json["record_set_id"] == null ? undefined : json["record_set_id"],
  };
}

export function DtoAttachRecordSetRequestToJSON(
  json: any,
): DtoAttachRecordSetRequest {
  return DtoAttachRecordSetRequestToJSONTyped(json, false);
}

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

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