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

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

export function ValueListItemResponseFromJSON(json: any): ValueListItemResponse {
    return ValueListItemResponseFromJSONTyped(json, false);
}

export function ValueListItemResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListItemResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        '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 ValueListItemResponseToJSON(json: any): ValueListItemResponse {
    return ValueListItemResponseToJSONTyped(json, false);
}

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

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

