/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * 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 UserProfilePublic */ export interface UserProfilePublic { /** * * @type {string} * @memberof UserProfilePublic */ 'id': string; /** * * @type {string} * @memberof UserProfilePublic */ 'name'?: string | null; /** * * @type {string} * @memberof UserProfilePublic */ 'pictureUrlCdn'?: string | null; } /** * Check if a given object implements the UserProfilePublic interface. */ export function instanceOfUserProfilePublic(value: object): value is UserProfilePublic { if (!('id' in value) || value['id'] === undefined) return false; return true; } export function UserProfilePublicFromJSON(json: any): UserProfilePublic { return UserProfilePublicFromJSONTyped(json, false); } export function UserProfilePublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfilePublic { if (json == null) { return json; } const result = { } as UserProfilePublic; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['name'] !== undefined) { if (json['name'] === null) { result['name'] = null; } else { result['name'] = json['name']; } } if (json['pictureUrlCdn'] !== undefined) { if (json['pictureUrlCdn'] === null) { result['pictureUrlCdn'] = null; } else { result['pictureUrlCdn'] = json['pictureUrlCdn']; } } return result; } export function UserProfilePublicToJSON(json: any): UserProfilePublic { return UserProfilePublicToJSONTyped(json, false); } export function UserProfilePublicToJSONTyped(value?: UserProfilePublic | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'pictureUrlCdn': value['pictureUrlCdn'], }; }