UNPKG

@emergentmethods/asknews-typescript-sdk

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