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

/**
 * Check if a given object implements the NewFile interface.
 */
export function instanceOfNewFile(value: object): value is NewFile {
  if (!('ticket' in value) || value['ticket'] === undefined) return false
  if (!('blob' in value) || value['blob'] === undefined) return false
  if (!('name' in value) || value['name'] === undefined) return false
  return true
}

export function NewFileFromJSON(json: any): NewFile {
  return NewFileFromJSONTyped(json, false)
}

export function NewFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewFile {
  if (json == null) {
    return json
  }
  return {
    ticket: json['ticket'],
    blob: json['blob'],
    name: json['name']
  }
}

export function NewFileToJSON(json: any): NewFile {
  return NewFileToJSONTyped(json, false)
}

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

  return {
    ticket: value['ticket'],
    blob: value['blob'],
    name: value['name']
  }
}
