UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
54 lines (53 loc) 1.84 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.GoogleDocsParamsToJSONTyped = exports.GoogleDocsParamsToJSON = exports.GoogleDocsParamsFromJSONTyped = exports.GoogleDocsParamsFromJSON = exports.instanceOfGoogleDocsParams = void 0; /** * Check if a given object implements the GoogleDocsParams interface. */ function instanceOfGoogleDocsParams(value) { if (!('clientJson' in value) || value['clientJson'] === undefined) return false; return true; } exports.instanceOfGoogleDocsParams = instanceOfGoogleDocsParams; function GoogleDocsParamsFromJSON(json) { return GoogleDocsParamsFromJSONTyped(json, false); } exports.GoogleDocsParamsFromJSON = GoogleDocsParamsFromJSON; function GoogleDocsParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'clientJson': json['client_json'], 'emails': json['emails'] == null ? undefined : json['emails'], }; } exports.GoogleDocsParamsFromJSONTyped = GoogleDocsParamsFromJSONTyped; function GoogleDocsParamsToJSON(json) { return GoogleDocsParamsToJSONTyped(json, false); } exports.GoogleDocsParamsToJSON = GoogleDocsParamsToJSON; function GoogleDocsParamsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'client_json': value['clientJson'], 'emails': value['emails'], }; } exports.GoogleDocsParamsToJSONTyped = GoogleDocsParamsToJSONTyped;