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

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

export function TaskUpdateFromJSON(json: any): TaskUpdate {
  return TaskUpdateFromJSONTyped(json, false)
}

export function TaskUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskUpdate {
  if (json == null) {
    return json
  }
  return {
    name: json['name'] == null ? undefined : json['name'],
    open: json['open'] == null ? undefined : json['open'],
    owner: json['owner'] == null ? undefined : json['owner']
  }
}

export function TaskUpdateToJSON(json: any): TaskUpdate {
  return TaskUpdateToJSONTyped(json, false)
}

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

  return {
    name: value['name'],
    open: value['open'],
    owner: value['owner']
  }
}
