UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
65 lines (64 loc) 2.59 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.OrganizationProfileToJSONTyped = exports.OrganizationProfileToJSON = exports.OrganizationProfileFromJSONTyped = exports.OrganizationProfileFromJSON = exports.instanceOfOrganizationProfile = exports.OrganizationProfileIdentityTypeEnum = void 0; const OrganizationProfileSubscription_1 = require("./OrganizationProfileSubscription"); /** * @export */ exports.OrganizationProfileIdentityTypeEnum = { Organization: 'organization' }; /** * Check if a given object implements the OrganizationProfile interface. */ function instanceOfOrganizationProfile(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('subscription' in value) || value['subscription'] === undefined) return false; return true; } exports.instanceOfOrganizationProfile = instanceOfOrganizationProfile; function OrganizationProfileFromJSON(json) { return OrganizationProfileFromJSONTyped(json, false); } exports.OrganizationProfileFromJSON = OrganizationProfileFromJSON; function OrganizationProfileFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identityType': json['identity_type'] == null ? undefined : json['identity_type'], 'id': json['id'], 'subscription': (0, OrganizationProfileSubscription_1.OrganizationProfileSubscriptionFromJSON)(json['subscription']), }; } exports.OrganizationProfileFromJSONTyped = OrganizationProfileFromJSONTyped; function OrganizationProfileToJSON(json) { return OrganizationProfileToJSONTyped(json, false); } exports.OrganizationProfileToJSON = OrganizationProfileToJSON; function OrganizationProfileToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identity_type': value['identityType'], 'id': value['id'], 'subscription': (0, OrganizationProfileSubscription_1.OrganizationProfileSubscriptionToJSON)(value['subscription']), }; } exports.OrganizationProfileToJSONTyped = OrganizationProfileToJSONTyped;