/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.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 UpdateValueListItemRequest
 */
export interface UpdateValueListItemRequest {
    /**
     * 
     * @type {string}
     * @memberof UpdateValueListItemRequest
     */
    value?: string | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateValueListItemRequest
     */
    sortOrder?: number;
    /**
     * 
     * @type {boolean}
     * @memberof UpdateValueListItemRequest
     */
    isDefault?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof UpdateValueListItemRequest
     */
    isInitial?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof UpdateValueListItemRequest
     */
    isTerminal?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof UpdateValueListItemRequest
     */
    triggersFollowUp?: boolean;
}

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

export function UpdateValueListItemRequestFromJSON(json: any): UpdateValueListItemRequest {
    return UpdateValueListItemRequestFromJSONTyped(json, false);
}

export function UpdateValueListItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateValueListItemRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'value': json['value'] == null ? undefined : json['value'],
        'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
        'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
        'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
        'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
        'triggersFollowUp': json['triggersFollowUp'] == null ? undefined : json['triggersFollowUp'],
    };
}

export function UpdateValueListItemRequestToJSON(json: any): UpdateValueListItemRequest {
    return UpdateValueListItemRequestToJSONTyped(json, false);
}

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

    return {
        
        'value': value['value'],
        'sortOrder': value['sortOrder'],
        'isDefault': value['isDefault'],
        'isInitial': value['isInitial'],
        'isTerminal': value['isTerminal'],
        'triggersFollowUp': value['triggersFollowUp'],
    };
}

