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

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

export function TableFromJSON(json: any): Table {
  return TableFromJSONTyped(json, false)
}

export function TableFromJSONTyped(json: any, ignoreDiscriminator: boolean): Table {
  if (json == null) {
    return json
  }
  return {
    id: json['id'],
    name: json['name']
  }
}

export function TableToJSON(json: any): Table {
  return TableToJSONTyped(json, false)
}

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

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