UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
46 lines (45 loc) 1.33 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 Author1 interface. */ export function instanceOfAuthor1(value) { return true; } export function Author1FromJSON(json) { return Author1FromJSONTyped(json, false); } export 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'], }; } export function Author1ToJSON(json) { return Author1ToJSONTyped(json, false); } export function Author1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'email': value['email'], 'name': value['name'], 'url': value['url'], }; }