/* 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 FileUpdate
 */
export interface FileUpdate {
  /**
   *
   * @type {string}
   * @memberof FileUpdate
   */
  name?: string
}

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

export function FileUpdateFromJSON(json: any): FileUpdate {
  return FileUpdateFromJSONTyped(json, false)
}

export function FileUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUpdate {
  if (json == null) {
    return json
  }
  return {
    name: json['name'] == null ? undefined : json['name']
  }
}

export function FileUpdateToJSON(json: any): FileUpdate {
  return FileUpdateToJSONTyped(json, false)
}

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

  return {
    name: value['name']
  }
}
