UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
56 lines (55 loc) 1.69 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationErrorItemToJSON = exports.ValidationErrorItemFromJSONTyped = exports.ValidationErrorItemFromJSON = exports.instanceOfValidationErrorItem = void 0; /** * Check if a given object implements the ValidationErrorItem interface. */ function instanceOfValidationErrorItem(value) { if (!('loc' in value)) return false; if (!('msg' in value)) return false; if (!('type' in value)) return false; return true; } exports.instanceOfValidationErrorItem = instanceOfValidationErrorItem; function ValidationErrorItemFromJSON(json) { return ValidationErrorItemFromJSONTyped(json, false); } exports.ValidationErrorItemFromJSON = ValidationErrorItemFromJSON; function ValidationErrorItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'loc': json['loc'], 'msg': json['msg'], 'type': json['type'], }; } exports.ValidationErrorItemFromJSONTyped = ValidationErrorItemFromJSONTyped; function ValidationErrorItemToJSON(value) { if (value == null) { return value; } return { 'loc': value['loc'], 'msg': value['msg'], 'type': value['type'], }; } exports.ValidationErrorItemToJSON = ValidationErrorItemToJSON;