@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
49 lines (48 loc) • 1.53 kB
JavaScript
;
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProfileResponseToJSON = exports.ProfileResponseFromJSONTyped = exports.ProfileResponseFromJSON = exports.instanceOfProfileResponse = void 0;
const Profile_1 = require("./Profile");
/**
* Check if a given object implements the ProfileResponse interface.
*/
function instanceOfProfileResponse(value) {
if (!('profile' in value))
return false;
return true;
}
exports.instanceOfProfileResponse = instanceOfProfileResponse;
function ProfileResponseFromJSON(json) {
return ProfileResponseFromJSONTyped(json, false);
}
exports.ProfileResponseFromJSON = ProfileResponseFromJSON;
function ProfileResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'profile': (0, Profile_1.ProfileFromJSON)(json['profile']),
};
}
exports.ProfileResponseFromJSONTyped = ProfileResponseFromJSONTyped;
function ProfileResponseToJSON(value) {
if (value == null) {
return value;
}
return {
'profile': (0, Profile_1.ProfileToJSON)(value['profile']),
};
}
exports.ProfileResponseToJSON = ProfileResponseToJSON;