UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
46 lines (45 loc) 1.28 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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 GoogleDocsParams interface. */ export function instanceOfGoogleDocsParams(value) { if (!('clientJson' in value) || value['clientJson'] === undefined) return false; return true; } export function GoogleDocsParamsFromJSON(json) { return GoogleDocsParamsFromJSONTyped(json, false); } export function GoogleDocsParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'clientJson': json['client_json'], 'emails': json['emails'] == null ? undefined : json['emails'], }; } export function GoogleDocsParamsToJSON(json) { return GoogleDocsParamsToJSONTyped(json, false); } export function GoogleDocsParamsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'client_json': value['clientJson'], 'emails': value['emails'], }; }