/* tslint:disable */
/* eslint-disable */
/**
 * Ringer Business API
 * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites,  phone numbers, payments, users, and other business resources.  Operations typically require authentication and appropriate permissions. 
 *
 * The version of the OpenAPI document: 1.0.5
 * Contact: support@ringer.tel
 *
 * 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';
/**
 * Attributes for updating a seat. Only provide fields to be changed.
 * @export
 * @interface SeatUpdateRequest
 */
export interface SeatUpdateRequest {
    /**
     * A descriptive name for the seat assignment.
     * @type {string}
     * @memberof SeatUpdateRequest
     */
    name?: string | null;
    /**
     * Identifier of the user to whom this seat is assigned.
     * @type {number}
     * @memberof SeatUpdateRequest
     */
    userId?: number | null;
}

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

export function SeatUpdateRequestFromJSON(json: any): SeatUpdateRequest {
    return SeatUpdateRequestFromJSONTyped(json, false);
}

export function SeatUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeatUpdateRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
        'userId': json['user_id'] == null ? undefined : json['user_id'],
    };
}

export function SeatUpdateRequestToJSON(json: any): SeatUpdateRequest {
    return SeatUpdateRequestToJSONTyped(json, false);
}

export function SeatUpdateRequestToJSONTyped(value?: SeatUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
        'user_id': value['userId'],
    };
}

