UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.34 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 KeyPerson interface. */ export function instanceOfKeyPerson(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('role' in value) || value['role'] === undefined) return false; return true; } export function KeyPersonFromJSON(json) { return KeyPersonFromJSONTyped(json, false); } export function KeyPersonFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'role': json['role'], }; } export function KeyPersonToJSON(json) { return KeyPersonToJSONTyped(json, false); } export function KeyPersonToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'role': value['role'], }; }