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 AbcAPIErrorModel48 */ export interface AbcAPIErrorModel48 { /** * * @type {number} * @memberof AbcAPIErrorModel48 */ code: number; /** * * @type {string} * @memberof AbcAPIErrorModel48 */ detail: string; } /** * Check if a given object implements the AbcAPIErrorModel48 interface. */ export function instanceOfAbcAPIErrorModel48(value: object): value is AbcAPIErrorModel48 { if (!('code' in value) || value['code'] === undefined) return false; if (!('detail' in value) || value['detail'] === undefined) return false; return true; } export function AbcAPIErrorModel48FromJSON(json: any): AbcAPIErrorModel48 { return AbcAPIErrorModel48FromJSONTyped(json, false); } export function AbcAPIErrorModel48FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel48 { if (json == null) { return json; } return { 'code': json['code'], 'detail': json['detail'], }; } export function AbcAPIErrorModel48ToJSON(json: any): AbcAPIErrorModel48 { return AbcAPIErrorModel48ToJSONTyped(json, false); } export function AbcAPIErrorModel48ToJSONTyped(value?: AbcAPIErrorModel48 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'code': value['code'], 'detail': value['detail'], }; }