UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
49 lines (48 loc) 1.32 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.18.6 * 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)) 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(value) { if (value == null) { return value; } return { 'identity_type': value['identityType'], 'impersonates_plan': value['impersonatesPlan'], }; }