UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.42 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.22 * 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 AbcAPIErrorModel2 interface. */ export function instanceOfAbcAPIErrorModel2(value) { if (!('code' in value) || value['code'] === undefined) return false; if (!('detail' in value) || value['detail'] === undefined) return false; return true; } export function AbcAPIErrorModel2FromJSON(json) { return AbcAPIErrorModel2FromJSONTyped(json, false); } export function AbcAPIErrorModel2FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'code': json['code'], 'detail': json['detail'], }; } export function AbcAPIErrorModel2ToJSON(json) { return AbcAPIErrorModel2ToJSONTyped(json, false); } export function AbcAPIErrorModel2ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'code': value['code'], 'detail': value['detail'], }; }