UNPKG

@apideck/node

Version:
62 lines (57 loc) 1.32 kB
/* tslint:disable */ /* eslint-disable */ /** * Apideck * The Apideck OpenAPI Spec: SDK Optimized * * The version of the OpenAPI document: 10.13.0 * Contact: support@apideck.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 { exists } from '../runtime' /** * * @export * @interface Deduction */ export interface Deduction { /** * The name of the deduction. * @type {string} * @memberof Deduction */ name?: string | null /** * The amount deducted. * @type {number} * @memberof Deduction */ amount?: number | null } export function DeductionFromJSON(json: any): Deduction { return DeductionFromJSONTyped(json, false) } export function DeductionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Deduction { if (json === undefined || json === null) { return json } return { name: !exists(json, 'name') ? undefined : json['name'], amount: !exists(json, 'amount') ? undefined : json['amount'] } } export function DeductionToJSON(value?: Deduction | null): any { if (value === undefined) { return undefined } if (value === null) { return null } return { name: value.name, amount: value.amount } }