UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
49 lines (48 loc) 1.2 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 ValidationErrorItem interface. */ export function instanceOfValidationErrorItem(value) { if (!('loc' in value)) return false; if (!('msg' in value)) return false; if (!('type' in value)) 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(value) { if (value == null) { return value; } return { 'loc': value['loc'], 'msg': value['msg'], 'type': value['type'], }; }