@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
48 lines (47 loc) • 1.31 kB
JavaScript
/* 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.
*/
/**
* Check if a given object implements the AbcAPIErrorModel19 interface.
*/
export function instanceOfAbcAPIErrorModel19(value) {
if (!('code' in value) || value['code'] === undefined)
return false;
if (!('detail' in value) || value['detail'] === undefined)
return false;
return true;
}
export function AbcAPIErrorModel19FromJSON(json) {
return AbcAPIErrorModel19FromJSONTyped(json, false);
}
export function AbcAPIErrorModel19FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'code': json['code'],
'detail': json['detail'],
};
}
export function AbcAPIErrorModel19ToJSON(json) {
return AbcAPIErrorModel19ToJSONTyped(json, false);
}
export function AbcAPIErrorModel19ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'code': value['code'],
'detail': value['detail'],
};
}