/* tslint:disable */
/* eslint-disable */
/**
 * Signal Cli REST API
 * This is the Signal Cli REST API documentation.
 *
 * 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.js";
/**
 *
 * @export
 * @interface ApiAddDeviceRequest
 */
export interface ApiAddDeviceRequest {
  /**
   *
   * @type {string}
   * @memberof ApiAddDeviceRequest
   */
  uri?: string;
}

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

export function ApiAddDeviceRequestFromJSON(json: any): ApiAddDeviceRequest {
  return ApiAddDeviceRequestFromJSONTyped(json, false);
}

export function ApiAddDeviceRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiAddDeviceRequest {
  if (json == null) {
    return json;
  }
  return {
    uri: json["uri"] == null ? undefined : json["uri"],
  };
}

export function ApiAddDeviceRequestToJSON(
  value?: ApiAddDeviceRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    uri: value["uri"],
  };
}
