/* 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 AbsenceDecisionRequest
 */
export interface AbsenceDecisionRequest {
    /**
     * 
     * @type {string}
     * @memberof AbsenceDecisionRequest
     */
    status?: string | null;
    /**
     * 
     * @type {string}
     * @memberof AbsenceDecisionRequest
     */
    adminNote?: string | null;
}

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

export function AbsenceDecisionRequestFromJSON(json: any): AbsenceDecisionRequest {
    return AbsenceDecisionRequestFromJSONTyped(json, false);
}

export function AbsenceDecisionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AbsenceDecisionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'status': json['status'] == null ? undefined : json['status'],
        'adminNote': json['adminNote'] == null ? undefined : json['adminNote'],
    };
}

export function AbsenceDecisionRequestToJSON(json: any): AbsenceDecisionRequest {
    return AbsenceDecisionRequestToJSONTyped(json, false);
}

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

    return {
        
        'status': value['status'],
        'adminNote': value['adminNote'],
    };
}

