/* 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 TrashContractResponse
 */
export interface TrashContractResponse {
    /**
     * 
     * @type {string}
     * @memberof TrashContractResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof TrashContractResponse
     */
    contractType?: string | null;
    /**
     * 
     * @type {Date}
     * @memberof TrashContractResponse
     */
    deletedAt?: Date | null;
}

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

export function TrashContractResponseFromJSON(json: any): TrashContractResponse {
    return TrashContractResponseFromJSONTyped(json, false);
}

export function TrashContractResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashContractResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'contractType': json['contractType'] == null ? undefined : json['contractType'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashContractResponseToJSON(json: any): TrashContractResponse {
    return TrashContractResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'contractType': value['contractType'],
        'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
    };
}

