/* 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 ValueListTransitionResponse
 */
export interface ValueListTransitionResponse {
    /**
     * 
     * @type {string}
     * @memberof ValueListTransitionResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof ValueListTransitionResponse
     */
    fromItemId?: string;
    /**
     * 
     * @type {string}
     * @memberof ValueListTransitionResponse
     */
    toItemId?: string;
    /**
     * 
     * @type {boolean}
     * @memberof ValueListTransitionResponse
     */
    requiresApproval?: boolean;
}

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

export function ValueListTransitionResponseFromJSON(json: any): ValueListTransitionResponse {
    return ValueListTransitionResponseFromJSONTyped(json, false);
}

export function ValueListTransitionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListTransitionResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'fromItemId': json['fromItemId'] == null ? undefined : json['fromItemId'],
        'toItemId': json['toItemId'] == null ? undefined : json['toItemId'],
        'requiresApproval': json['requiresApproval'] == null ? undefined : json['requiresApproval'],
    };
}

export function ValueListTransitionResponseToJSON(json: any): ValueListTransitionResponse {
    return ValueListTransitionResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'fromItemId': value['fromItemId'],
        'toItemId': value['toItemId'],
        'requiresApproval': value['requiresApproval'],
    };
}

