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

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

export function DtoLogoutRequestFromJSON(json: any): DtoLogoutRequest {
  return DtoLogoutRequestFromJSONTyped(json, false);
}

export function DtoLogoutRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoLogoutRequest {
  if (json == null) {
    return json;
  }
  return {
    refresh_token:
      json["refresh_token"] == null ? undefined : json["refresh_token"],
  };
}

export function DtoLogoutRequestToJSON(json: any): DtoLogoutRequest {
  return DtoLogoutRequestToJSONTyped(json, false);
}

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

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