/* tslint:disable */
/* eslint-disable */
/**
 * Ticketing System 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 CommentUpdate
 */
export interface CommentUpdate {
  /**
   *
   * @type {string}
   * @memberof CommentUpdate
   */
  author?: string
  /**
   *
   * @type {string}
   * @memberof CommentUpdate
   */
  message?: string
}

/**
 * Check if a given object implements the CommentUpdate interface.
 */
export function instanceOfCommentUpdate(value: object): value is CommentUpdate {
  return true
}

export function CommentUpdateFromJSON(json: any): CommentUpdate {
  return CommentUpdateFromJSONTyped(json, false)
}

export function CommentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentUpdate {
  if (json == null) {
    return json
  }
  return {
    author: json['author'] == null ? undefined : json['author'],
    message: json['message'] == null ? undefined : json['message']
  }
}

export function CommentUpdateToJSON(json: any): CommentUpdate {
  return CommentUpdateToJSONTyped(json, false)
}

export function CommentUpdateToJSONTyped(
  value?: CommentUpdate | null,
  ignoreDiscriminator: boolean = false
): any {
  if (value == null) {
    return value
  }

  return {
    author: value['author'],
    message: value['message']
  }
}
