@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
48 lines (47 loc) • 1.44 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.
*/
/**
* Check if a given object implements the UserProfileOrganization interface.
*/
export function instanceOfUserProfileOrganization(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('role' in value) || value['role'] === undefined)
return false;
return true;
}
export function UserProfileOrganizationFromJSON(json) {
return UserProfileOrganizationFromJSONTyped(json, false);
}
export function UserProfileOrganizationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'],
'role': json['role'],
};
}
export function UserProfileOrganizationToJSON(json) {
return UserProfileOrganizationToJSONTyped(json, false);
}
export function UserProfileOrganizationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'role': value['role'],
};
}