UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.44 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 AbcAPIErrorModel109 interface. */ export function instanceOfAbcAPIErrorModel109(value) { if (!('code' in value) || value['code'] === undefined) return false; if (!('detail' in value) || value['detail'] === undefined) return false; return true; } export function AbcAPIErrorModel109FromJSON(json) { return AbcAPIErrorModel109FromJSONTyped(json, false); } export function AbcAPIErrorModel109FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'code': json['code'], 'detail': json['detail'], }; } export function AbcAPIErrorModel109ToJSON(json) { return AbcAPIErrorModel109ToJSONTyped(json, false); } export function AbcAPIErrorModel109ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'code': value['code'], 'detail': value['detail'], }; }