@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
76 lines (65 loc) • 2 kB
text/typescript
/* 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.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface UserProfileOrganization
*/
export interface UserProfileOrganization {
/**
*
* @type {string}
* @memberof UserProfileOrganization
*/
id: string;
/**
*
* @type {string}
* @memberof UserProfileOrganization
*/
role: string;
}
/**
* Check if a given object implements the UserProfileOrganization interface.
*/
export function instanceOfUserProfileOrganization(value: object): value is UserProfileOrganization {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('role' in value) || value['role'] === undefined) return false;
return true;
}
export function UserProfileOrganizationFromJSON(json: any): UserProfileOrganization {
return UserProfileOrganizationFromJSONTyped(json, false);
}
export function UserProfileOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfileOrganization {
if (json == null) {
return json;
}
return {
'id': json['id'],
'role': json['role'],
};
}
export function UserProfileOrganizationToJSON(json: any): UserProfileOrganization {
return UserProfileOrganizationToJSONTyped(json, false);
}
export function UserProfileOrganizationToJSONTyped(value?: UserProfileOrganization | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'role': value['role'],
};
}