UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 1.95 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.ApiKeyResponseToJSONTyped = exports.ApiKeyResponseToJSON = exports.ApiKeyResponseFromJSONTyped = exports.ApiKeyResponseFromJSON = exports.instanceOfApiKeyResponse = void 0; /** * Check if a given object implements the ApiKeyResponse interface. */ function instanceOfApiKeyResponse(value) { if (!('provider' in value) || value['provider'] === undefined) return false; if (!('keyHint' in value) || value['keyHint'] === undefined) return false; return true; } exports.instanceOfApiKeyResponse = instanceOfApiKeyResponse; function ApiKeyResponseFromJSON(json) { return ApiKeyResponseFromJSONTyped(json, false); } exports.ApiKeyResponseFromJSON = ApiKeyResponseFromJSON; function ApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'provider': json['provider'], 'keyHint': json['key_hint'], }; } exports.ApiKeyResponseFromJSONTyped = ApiKeyResponseFromJSONTyped; function ApiKeyResponseToJSON(json) { return ApiKeyResponseToJSONTyped(json, false); } exports.ApiKeyResponseToJSON = ApiKeyResponseToJSON; function ApiKeyResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'provider': value['provider'], 'key_hint': value['keyHint'], }; } exports.ApiKeyResponseToJSONTyped = ApiKeyResponseToJSONTyped;