UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.3 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 UpsertApiKeyRequest interface. */ export function instanceOfUpsertApiKeyRequest(value) { if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } export function UpsertApiKeyRequestFromJSON(json) { return UpsertApiKeyRequestFromJSONTyped(json, false); } export function UpsertApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'apiKey': json['api_key'], }; } export function UpsertApiKeyRequestToJSON(json) { return UpsertApiKeyRequestToJSONTyped(json, false); } export function UpsertApiKeyRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'api_key': value['apiKey'], }; }