@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
55 lines (54 loc) • 2.38 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.33
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GetFwLeaderboardsActiveTotalActiveTotal1FromJSON, GetFwLeaderboardsActiveTotalActiveTotal1ToJSON, } from './GetFwLeaderboardsActiveTotalActiveTotal1';
import { GetFwLeaderboardsLastWeekLastWeek1FromJSON, GetFwLeaderboardsLastWeekLastWeek1ToJSON, } from './GetFwLeaderboardsLastWeekLastWeek1';
import { GetFwLeaderboardsYesterdayYesterday1FromJSON, GetFwLeaderboardsYesterdayYesterday1ToJSON, } from './GetFwLeaderboardsYesterdayYesterday1';
/**
* Check if a given object implements the GetFwLeaderboardsVictoryPoints interface.
*/
export function instanceOfGetFwLeaderboardsVictoryPoints(value) {
if (!('activeTotal' in value) || value['activeTotal'] === undefined)
return false;
if (!('lastWeek' in value) || value['lastWeek'] === undefined)
return false;
if (!('yesterday' in value) || value['yesterday'] === undefined)
return false;
return true;
}
export function GetFwLeaderboardsVictoryPointsFromJSON(json) {
return GetFwLeaderboardsVictoryPointsFromJSONTyped(json, false);
}
export function GetFwLeaderboardsVictoryPointsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'activeTotal': (json['active_total'].map(GetFwLeaderboardsActiveTotalActiveTotal1FromJSON)),
'lastWeek': (json['last_week'].map(GetFwLeaderboardsLastWeekLastWeek1FromJSON)),
'yesterday': (json['yesterday'].map(GetFwLeaderboardsYesterdayYesterday1FromJSON)),
};
}
export function GetFwLeaderboardsVictoryPointsToJSON(json) {
return GetFwLeaderboardsVictoryPointsToJSONTyped(json, false);
}
export function GetFwLeaderboardsVictoryPointsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'active_total': (value['activeTotal'].map(GetFwLeaderboardsActiveTotalActiveTotal1ToJSON)),
'last_week': (value['lastWeek'].map(GetFwLeaderboardsLastWeekLastWeek1ToJSON)),
'yesterday': (value['yesterday'].map(GetFwLeaderboardsYesterdayYesterday1ToJSON)),
};
}