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

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

export function GroupUpdateFromJSON(json: any): GroupUpdate {
  return GroupUpdateFromJSONTyped(json, false)
}

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

export function GroupUpdateToJSON(json: any): GroupUpdate {
  return GroupUpdateToJSONTyped(json, false)
}

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

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