UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
45 lines (44 loc) 1.36 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](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 { ProfileFromJSON, ProfileToJSON, } from './Profile'; /** * Check if a given object implements the ProfileResponse interface. */ export function instanceOfProfileResponse(value) { if (!('profile' in value) || value['profile'] === undefined) return false; return true; } export function ProfileResponseFromJSON(json) { return ProfileResponseFromJSONTyped(json, false); } export function ProfileResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'profile': ProfileFromJSON(json['profile']), }; } export function ProfileResponseToJSON(json) { return ProfileResponseToJSONTyped(json, false); } export function ProfileResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'profile': ProfileToJSON(value['profile']), }; }