/* 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 ReqGetLeases */ export interface ReqGetLeases { /** * made optional to support header auth clients * @type {string} * @memberof ReqGetLeases */ auth?: string; /** * * @type {number} * @memberof ReqGetLeases */ account_index: number; /** * * @type {string} * @memberof ReqGetLeases */ cursor?: string; /** * * @type {number} * @memberof ReqGetLeases */ limit?: number; } /** * Check if a given object implements the ReqGetLeases interface. */ export function instanceOfReqGetLeases(value: object): value is ReqGetLeases { if (!('account_index' in value) || value['account_index'] === undefined) return false; return true; } export function ReqGetLeasesFromJSON(json: any): ReqGetLeases { return ReqGetLeasesFromJSONTyped(json, false); } export function ReqGetLeasesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetLeases { if (json == null) { return json; } return { 'auth': json['auth'] == null ? undefined : json['auth'], 'account_index': json['account_index'], 'cursor': json['cursor'] == null ? undefined : json['cursor'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ReqGetLeasesToJSON(value?: ReqGetLeases | null): any { if (value == null) { return value; } return { 'auth': value['auth'], 'account_index': value['account_index'], 'cursor': value['cursor'], 'limit': value['limit'], }; }