/* 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 ReqGetPartnerStats */ export interface ReqGetPartnerStats { /** * * @type {number} * @memberof ReqGetPartnerStats */ account_index: number; /** * * @type {number} * @memberof ReqGetPartnerStats */ start_timestamp?: number; /** * * @type {number} * @memberof ReqGetPartnerStats */ end_timestamp?: number; } /** * Check if a given object implements the ReqGetPartnerStats interface. */ export function instanceOfReqGetPartnerStats(value: object): value is ReqGetPartnerStats { if (!('account_index' in value) || value['account_index'] === undefined) return false; return true; } export function ReqGetPartnerStatsFromJSON(json: any): ReqGetPartnerStats { return ReqGetPartnerStatsFromJSONTyped(json, false); } export function ReqGetPartnerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPartnerStats { if (json == null) { return json; } return { 'account_index': json['account_index'], 'start_timestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'], 'end_timestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'], }; } export function ReqGetPartnerStatsToJSON(value?: ReqGetPartnerStats | null): any { if (value == null) { return value; } return { 'account_index': value['account_index'], 'start_timestamp': value['start_timestamp'], 'end_timestamp': value['end_timestamp'], }; }