UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
67 lines (56 loc) 1.72 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * Contact: contact@emergentmethods.ai * * 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 UpsertApiKeyRequest */ export interface UpsertApiKeyRequest { /** * * @type {string} * @memberof UpsertApiKeyRequest */ apiKey: string; } /** * Check if a given object implements the UpsertApiKeyRequest interface. */ export function instanceOfUpsertApiKeyRequest(value: object): value is UpsertApiKeyRequest { if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } export function UpsertApiKeyRequestFromJSON(json: any): UpsertApiKeyRequest { return UpsertApiKeyRequestFromJSONTyped(json, false); } export function UpsertApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertApiKeyRequest { if (json == null) { return json; } return { 'apiKey': json['api_key'], }; } export function UpsertApiKeyRequestToJSON(json: any): UpsertApiKeyRequest { return UpsertApiKeyRequestToJSONTyped(json, false); } export function UpsertApiKeyRequestToJSONTyped(value?: UpsertApiKeyRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'api_key': value['apiKey'], }; }