UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
54 lines (53 loc) 1.73 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.AuthorToJSONTyped = exports.AuthorToJSON = exports.AuthorFromJSONTyped = exports.AuthorFromJSON = exports.instanceOfAuthor = void 0; /** * Check if a given object implements the Author interface. */ function instanceOfAuthor(value) { return true; } exports.instanceOfAuthor = instanceOfAuthor; function AuthorFromJSON(json) { return AuthorFromJSONTyped(json, false); } exports.AuthorFromJSON = AuthorFromJSON; function AuthorFromJSONTyped(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.AuthorFromJSONTyped = AuthorFromJSONTyped; function AuthorToJSON(json) { return AuthorToJSONTyped(json, false); } exports.AuthorToJSON = AuthorToJSON; function AuthorToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'email': value['email'], 'name': value['name'], 'url': value['url'], }; } exports.AuthorToJSONTyped = AuthorToJSONTyped;