UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
82 lines (71 loc) 1.85 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.66 * 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface Author */ export interface Author { /** * * @type {string} * @memberof Author */ email?: string | null; /** * * @type {string} * @memberof Author */ name?: string | null; /** * * @type {string} * @memberof Author */ url?: string | null; } /** * Check if a given object implements the Author interface. */ export function instanceOfAuthor(value: object): value is Author { return true; } export function AuthorFromJSON(json: any): Author { return AuthorFromJSONTyped(json, false); } export function AuthorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Author { 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: any): Author { return AuthorToJSONTyped(json, false); } export function AuthorToJSONTyped(value?: Author | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'email': value['email'], 'name': value['name'], 'url': value['url'], }; }