/* 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 CommentCreate */ export interface CommentCreate { /** * * @type {string} * @memberof CommentCreate */ 'content'?: string; /** * * @type {string} * @memberof CommentCreate */ 'anonymousDisplayName'?: string; } /** * Check if a given object implements the CommentCreate interface. */ export function instanceOfCommentCreate(value: object): value is CommentCreate { return true; } export function CommentCreateFromJSON(json: any): CommentCreate { return CommentCreateFromJSONTyped(json, false); } export function CommentCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentCreate { if (json == null) { return json; } const result = { } as CommentCreate; if (json['content'] !== undefined) { result['content'] = json['content']; } if (json['anonymousDisplayName'] !== undefined) { result['anonymousDisplayName'] = json['anonymousDisplayName']; } return result; } export function CommentCreateToJSON(json: any): CommentCreate { return CommentCreateToJSONTyped(json, false); } export function CommentCreateToJSONTyped(value?: CommentCreate | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'anonymousDisplayName': value['anonymousDisplayName'], }; }