UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
76 lines (65 loc) 1.82 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface AbcAPIErrorModel45 */ export interface AbcAPIErrorModel45 { /** * * @type {number} * @memberof AbcAPIErrorModel45 */ code: number; /** * * @type {string} * @memberof AbcAPIErrorModel45 */ detail: string; } /** * Check if a given object implements the AbcAPIErrorModel45 interface. */ export function instanceOfAbcAPIErrorModel45(value: object): value is AbcAPIErrorModel45 { if (!('code' in value) || value['code'] === undefined) return false; if (!('detail' in value) || value['detail'] === undefined) return false; return true; } export function AbcAPIErrorModel45FromJSON(json: any): AbcAPIErrorModel45 { return AbcAPIErrorModel45FromJSONTyped(json, false); } export function AbcAPIErrorModel45FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel45 { if (json == null) { return json; } return { 'code': json['code'], 'detail': json['detail'], }; } export function AbcAPIErrorModel45ToJSON(json: any): AbcAPIErrorModel45 { return AbcAPIErrorModel45ToJSONTyped(json, false); } export function AbcAPIErrorModel45ToJSONTyped(value?: AbcAPIErrorModel45 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'code': value['code'], 'detail': value['detail'], }; }