/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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 LeaseOptionEntry */ export interface LeaseOptionEntry { /** * * @type {number} * @memberof LeaseOptionEntry */ duration_days: number; /** * * @type {number} * @memberof LeaseOptionEntry */ annual_rate: number; } /** * Check if a given object implements the LeaseOptionEntry interface. */ export function instanceOfLeaseOptionEntry(value: object): value is LeaseOptionEntry { if (!('duration_days' in value) || value['duration_days'] === undefined) return false; if (!('annual_rate' in value) || value['annual_rate'] === undefined) return false; return true; } export function LeaseOptionEntryFromJSON(json: any): LeaseOptionEntry { return LeaseOptionEntryFromJSONTyped(json, false); } export function LeaseOptionEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseOptionEntry { if (json == null) { return json; } return { 'duration_days': json['duration_days'], 'annual_rate': json['annual_rate'], }; } export function LeaseOptionEntryToJSON(value?: LeaseOptionEntry | null): any { if (value == null) { return value; } return { 'duration_days': value['duration_days'], 'annual_rate': value['annual_rate'], }; }