/* 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 CreateValueListItemRequest
 */
export interface CreateValueListItemRequest {
    /**
     * 
     * @type {string}
     * @memberof CreateValueListItemRequest
     */
    value?: string | null;
    /**
     * 
     * @type {number}
     * @memberof CreateValueListItemRequest
     */
    sortOrder?: number;
    /**
     * 
     * @type {boolean}
     * @memberof CreateValueListItemRequest
     */
    isDefault?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof CreateValueListItemRequest
     */
    isInitial?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof CreateValueListItemRequest
     */
    isTerminal?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof CreateValueListItemRequest
     */
    triggersFollowUp?: boolean;
}

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

export function CreateValueListItemRequestFromJSON(json: any): CreateValueListItemRequest {
    return CreateValueListItemRequestFromJSONTyped(json, false);
}

export function CreateValueListItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateValueListItemRequest {
    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 CreateValueListItemRequestToJSON(json: any): CreateValueListItemRequest {
    return CreateValueListItemRequestToJSONTyped(json, false);
}

export function CreateValueListItemRequestToJSONTyped(value?: CreateValueListItemRequest | 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'],
    };
}

