/* 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'; import type { LeaseOptionEntry } from './LeaseOptionEntry'; import { LeaseOptionEntryFromJSON, LeaseOptionEntryFromJSONTyped, LeaseOptionEntryToJSON, } from './LeaseOptionEntry'; /** * * @export * @interface RespGetLeaseOptions */ export interface RespGetLeaseOptions { /** * * @type {number} * @memberof RespGetLeaseOptions */ code: number; /** * * @type {string} * @memberof RespGetLeaseOptions */ message?: string; /** * * @type {Array} * @memberof RespGetLeaseOptions */ options: Array; /** * * @type {number} * @memberof RespGetLeaseOptions */ lit_incentives_account_index: number; } /** * Check if a given object implements the RespGetLeaseOptions interface. */ export function instanceOfRespGetLeaseOptions(value: object): value is RespGetLeaseOptions { if (!('code' in value) || value['code'] === undefined) return false; if (!('options' in value) || value['options'] === undefined) return false; if (!('lit_incentives_account_index' in value) || value['lit_incentives_account_index'] === undefined) return false; return true; } export function RespGetLeaseOptionsFromJSON(json: any): RespGetLeaseOptions { return RespGetLeaseOptionsFromJSONTyped(json, false); } export function RespGetLeaseOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetLeaseOptions { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'options': ((json['options'] as Array).map(LeaseOptionEntryFromJSON)), 'lit_incentives_account_index': json['lit_incentives_account_index'], }; } export function RespGetLeaseOptionsToJSON(value?: RespGetLeaseOptions | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'options': ((value['options'] as Array).map(LeaseOptionEntryToJSON)), 'lit_incentives_account_index': value['lit_incentives_account_index'], }; }