UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
60 lines (59 loc) 2.18 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ServiceAccountProfileToJSONTyped = exports.ServiceAccountProfileToJSON = exports.ServiceAccountProfileFromJSONTyped = exports.ServiceAccountProfileFromJSON = exports.instanceOfServiceAccountProfile = exports.ServiceAccountProfileIdentityTypeEnum = void 0; /** * @export */ exports.ServiceAccountProfileIdentityTypeEnum = { ServiceAccount: 'service_account' }; /** * Check if a given object implements the ServiceAccountProfile interface. */ function instanceOfServiceAccountProfile(value) { if (!('impersonatesPlan' in value) || value['impersonatesPlan'] === undefined) return false; return true; } exports.instanceOfServiceAccountProfile = instanceOfServiceAccountProfile; function ServiceAccountProfileFromJSON(json) { return ServiceAccountProfileFromJSONTyped(json, false); } exports.ServiceAccountProfileFromJSON = ServiceAccountProfileFromJSON; function ServiceAccountProfileFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identityType': json['identity_type'] == null ? undefined : json['identity_type'], 'impersonatesPlan': json['impersonates_plan'], }; } exports.ServiceAccountProfileFromJSONTyped = ServiceAccountProfileFromJSONTyped; function ServiceAccountProfileToJSON(json) { return ServiceAccountProfileToJSONTyped(json, false); } exports.ServiceAccountProfileToJSON = ServiceAccountProfileToJSON; function ServiceAccountProfileToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identity_type': value['identityType'], 'impersonates_plan': value['impersonatesPlan'], }; } exports.ServiceAccountProfileToJSONTyped = ServiceAccountProfileToJSONTyped;