UNPKG

@emergentmethods/asknews-typescript-sdk

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