UNPKG

@emergentmethods/asknews-typescript-sdk

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