@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
53 lines (52 loc) • 1.79 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.21.1
* 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.ProfileResponseToJSONTyped = 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) || value['profile'] === undefined)
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(json) {
return ProfileResponseToJSONTyped(json, false);
}
exports.ProfileResponseToJSON = ProfileResponseToJSON;
function ProfileResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'profile': (0, Profile_1.ProfileToJSON)(value['profile']),
};
}
exports.ProfileResponseToJSONTyped = ProfileResponseToJSONTyped;
;