UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
52 lines (51 loc) 1.51 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. */ /** * @export */ export const ServiceAccountProfileIdentityTypeEnum = { ServiceAccount: 'service_account' }; /** * Check if a given object implements the ServiceAccountProfile interface. */ export function instanceOfServiceAccountProfile(value) { if (!('impersonatesPlan' in value) || value['impersonatesPlan'] === undefined) return false; return true; } export function ServiceAccountProfileFromJSON(json) { return ServiceAccountProfileFromJSONTyped(json, false); } export function ServiceAccountProfileFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identityType': json['identity_type'] == null ? undefined : json['identity_type'], 'impersonatesPlan': json['impersonates_plan'], }; } export function ServiceAccountProfileToJSON(json) { return ServiceAccountProfileToJSONTyped(json, false); } export function ServiceAccountProfileToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'identity_type': value['identityType'], 'impersonates_plan': value['impersonatesPlan'], }; }