@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
52 lines (51 loc) • 1.55 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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 ValidationErrorItem interface.
*/
export function instanceOfValidationErrorItem(value) {
if (!('loc' in value) || value['loc'] === undefined)
return false;
if (!('msg' in value) || value['msg'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
return true;
}
export function ValidationErrorItemFromJSON(json) {
return ValidationErrorItemFromJSONTyped(json, false);
}
export function ValidationErrorItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'loc': json['loc'],
'msg': json['msg'],
'type': json['type'],
};
}
export function ValidationErrorItemToJSON(json) {
return ValidationErrorItemToJSONTyped(json, false);
}
export function ValidationErrorItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'loc': value['loc'],
'msg': value['msg'],
'type': value['type'],
};
}