UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.9 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.UpsertApiKeyRequestToJSONTyped = exports.UpsertApiKeyRequestToJSON = exports.UpsertApiKeyRequestFromJSONTyped = exports.UpsertApiKeyRequestFromJSON = exports.instanceOfUpsertApiKeyRequest = void 0; /** * Check if a given object implements the UpsertApiKeyRequest interface. */ function instanceOfUpsertApiKeyRequest(value) { if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } exports.instanceOfUpsertApiKeyRequest = instanceOfUpsertApiKeyRequest; function UpsertApiKeyRequestFromJSON(json) { return UpsertApiKeyRequestFromJSONTyped(json, false); } exports.UpsertApiKeyRequestFromJSON = UpsertApiKeyRequestFromJSON; function UpsertApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'apiKey': json['api_key'], }; } exports.UpsertApiKeyRequestFromJSONTyped = UpsertApiKeyRequestFromJSONTyped; function UpsertApiKeyRequestToJSON(json) { return UpsertApiKeyRequestToJSONTyped(json, false); } exports.UpsertApiKeyRequestToJSON = UpsertApiKeyRequestToJSON; function UpsertApiKeyRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'api_key': value['apiKey'], }; } exports.UpsertApiKeyRequestToJSONTyped = UpsertApiKeyRequestToJSONTyped;