UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
45 lines (44 loc) 1.1 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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 AbcAPIErrorModel16 interface. */ export function instanceOfAbcAPIErrorModel16(value) { if (!('code' in value)) return false; if (!('detail' in value)) return false; return true; } export function AbcAPIErrorModel16FromJSON(json) { return AbcAPIErrorModel16FromJSONTyped(json, false); } export function AbcAPIErrorModel16FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'code': json['code'], 'detail': json['detail'], }; } export function AbcAPIErrorModel16ToJSON(value) { if (value == null) { return value; } return { 'code': value['code'], 'detail': value['detail'], }; }