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

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

export function LinkUpdateFromJSON(json: any): LinkUpdate {
  return LinkUpdateFromJSONTyped(json, false)
}

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

export function LinkUpdateToJSON(json: any): LinkUpdate {
  return LinkUpdateToJSONTyped(json, false)
}

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

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