/* 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";
import type { ApiLoggingConfiguration } from "./ApiLoggingConfiguration.js";
import {
  ApiLoggingConfigurationFromJSON,
  ApiLoggingConfigurationFromJSONTyped,
  ApiLoggingConfigurationToJSON,
} from "./ApiLoggingConfiguration.js";

/**
 *
 * @export
 * @interface ApiConfiguration
 */
export interface ApiConfiguration {
  /**
   *
   * @type {ApiLoggingConfiguration}
   * @memberof ApiConfiguration
   */
  logging?: ApiLoggingConfiguration;
}

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

export function ApiConfigurationFromJSON(json: any): ApiConfiguration {
  return ApiConfigurationFromJSONTyped(json, false);
}

export function ApiConfigurationFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiConfiguration {
  if (json == null) {
    return json;
  }
  return {
    logging:
      json["logging"] == null
        ? undefined
        : ApiLoggingConfigurationFromJSON(json["logging"]),
  };
}

export function ApiConfigurationToJSON(value?: ApiConfiguration | null): any {
  if (value == null) {
    return value;
  }
  return {
    logging: ApiLoggingConfigurationToJSON(value["logging"]),
  };
}
