/* 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 CommentWithAuthorAnonymousIdentity */ export interface CommentWithAuthorAnonymousIdentity { /** * * @type {string} * @memberof CommentWithAuthorAnonymousIdentity */ 'displayName'?: string | null; /** * * @type {string} * @memberof CommentWithAuthorAnonymousIdentity */ 'sessionHash'?: string | null; } /** * Check if a given object implements the CommentWithAuthorAnonymousIdentity interface. */ export function instanceOfCommentWithAuthorAnonymousIdentity(value: object): value is CommentWithAuthorAnonymousIdentity { return true; } export function CommentWithAuthorAnonymousIdentityFromJSON(json: any): CommentWithAuthorAnonymousIdentity { return CommentWithAuthorAnonymousIdentityFromJSONTyped(json, false); } export function CommentWithAuthorAnonymousIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentWithAuthorAnonymousIdentity { if (json == null) { return json; } const result = { } as CommentWithAuthorAnonymousIdentity; if (json['displayName'] !== undefined) { if (json['displayName'] === null) { result['displayName'] = null; } else { result['displayName'] = json['displayName']; } } if (json['sessionHash'] !== undefined) { if (json['sessionHash'] === null) { result['sessionHash'] = null; } else { result['sessionHash'] = json['sessionHash']; } } return result; } export function CommentWithAuthorAnonymousIdentityToJSON(json: any): CommentWithAuthorAnonymousIdentity { return CommentWithAuthorAnonymousIdentityToJSONTyped(json, false); } export function CommentWithAuthorAnonymousIdentityToJSONTyped(value?: CommentWithAuthorAnonymousIdentity | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'displayName': value['displayName'], 'sessionHash': value['sessionHash'], }; }