@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
57 lines (56 loc) • 1.92 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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.
*/
import { OrganizationProfileSubscriptionFromJSON, OrganizationProfileSubscriptionToJSON, } from './OrganizationProfileSubscription';
/**
* @export
*/
export const OrganizationProfileIdentityTypeEnum = {
Organization: 'organization'
};
/**
* Check if a given object implements the OrganizationProfile interface.
*/
export function instanceOfOrganizationProfile(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('subscription' in value) || value['subscription'] === undefined)
return false;
return true;
}
export function OrganizationProfileFromJSON(json) {
return OrganizationProfileFromJSONTyped(json, false);
}
export function OrganizationProfileFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'identityType': json['identity_type'] == null ? undefined : json['identity_type'],
'id': json['id'],
'subscription': OrganizationProfileSubscriptionFromJSON(json['subscription']),
};
}
export function OrganizationProfileToJSON(json) {
return OrganizationProfileToJSONTyped(json, false);
}
export function OrganizationProfileToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'identity_type': value['identityType'],
'id': value['id'],
'subscription': OrganizationProfileSubscriptionToJSON(value['subscription']),
};
}