UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
54 lines (53 loc) 1.75 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Author1ToJSONTyped = exports.Author1ToJSON = exports.Author1FromJSONTyped = exports.Author1FromJSON = exports.instanceOfAuthor1 = void 0; /** * Check if a given object implements the Author1 interface. */ function instanceOfAuthor1(value) { return true; } exports.instanceOfAuthor1 = instanceOfAuthor1; function Author1FromJSON(json) { return Author1FromJSONTyped(json, false); } exports.Author1FromJSON = Author1FromJSON; function Author1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'email': json['email'] == null ? undefined : json['email'], 'name': json['name'] == null ? undefined : json['name'], 'url': json['url'] == null ? undefined : json['url'], }; } exports.Author1FromJSONTyped = Author1FromJSONTyped; function Author1ToJSON(json) { return Author1ToJSONTyped(json, false); } exports.Author1ToJSON = Author1ToJSON; function Author1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'email': value['email'], 'name': value['name'], 'url': value['url'], }; } exports.Author1ToJSONTyped = Author1ToJSONTyped;