UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
75 lines (63 loc) 1.74 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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 { mapValues } from '../runtime'; import type { Profile } from './Profile'; import { ProfileFromJSON, ProfileFromJSONTyped, ProfileToJSON, ProfileToJSONTyped, } from './Profile'; /** * * @export * @interface ProfileResponse */ export interface ProfileResponse { /** * * @type {Profile} * @memberof ProfileResponse */ profile: Profile; } /** * Check if a given object implements the ProfileResponse interface. */ export function instanceOfProfileResponse(value: object): value is ProfileResponse { if (!('profile' in value) || value['profile'] === undefined) return false; return true; } export function ProfileResponseFromJSON(json: any): ProfileResponse { return ProfileResponseFromJSONTyped(json, false); } export function ProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileResponse { if (json == null) { return json; } return { 'profile': ProfileFromJSON(json['profile']), }; } export function ProfileResponseToJSON(json: any): ProfileResponse { return ProfileResponseToJSONTyped(json, false); } export function ProfileResponseToJSONTyped(value?: ProfileResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'profile': ProfileToJSON(value['profile']), }; }