/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * 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 IncomeSchema
 */
export interface IncomeSchema {
    /**
     * 
     * @type {string}
     * @memberof IncomeSchema
     */
    currency?: string | null;
    /**
     * 
     * @type {number}
     * @memberof IncomeSchema
     */
    grossAnnualSalary?: number | null;
}

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

export function IncomeSchemaFromJSON(json: any): IncomeSchema {
    return IncomeSchemaFromJSONTyped(json, false);
}

export function IncomeSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncomeSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'currency': json['currency'] == null ? undefined : json['currency'],
        'grossAnnualSalary': json['grossAnnualSalary'] == null ? undefined : json['grossAnnualSalary'],
    };
}

export function IncomeSchemaToJSON(json: any): IncomeSchema {
    return IncomeSchemaToJSONTyped(json, false);
}

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

    return {
        
        'currency': value['currency'],
        'grossAnnualSalary': value['grossAnnualSalary'],
    };
}

