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