@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
55 lines (54 loc) • 2.61 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 { GetFwLeaderboardsCharactersActiveTotalActiveTotal1FromJSON, GetFwLeaderboardsCharactersActiveTotalActiveTotal1ToJSON, } from './GetFwLeaderboardsCharactersActiveTotalActiveTotal1';
import { GetFwLeaderboardsCharactersYesterdayYesterday1FromJSON, GetFwLeaderboardsCharactersYesterdayYesterday1ToJSON, } from './GetFwLeaderboardsCharactersYesterdayYesterday1';
import { GetFwLeaderboardsCharactersLastWeekLastWeek1FromJSON, GetFwLeaderboardsCharactersLastWeekLastWeek1ToJSON, } from './GetFwLeaderboardsCharactersLastWeekLastWeek1';
/**
* Check if a given object implements the GetFwLeaderboardsCharactersVictoryPoints interface.
*/
export function instanceOfGetFwLeaderboardsCharactersVictoryPoints(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 GetFwLeaderboardsCharactersVictoryPointsFromJSON(json) {
return GetFwLeaderboardsCharactersVictoryPointsFromJSONTyped(json, false);
}
export function GetFwLeaderboardsCharactersVictoryPointsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'activeTotal': (json['active_total'].map(GetFwLeaderboardsCharactersActiveTotalActiveTotal1FromJSON)),
'lastWeek': (json['last_week'].map(GetFwLeaderboardsCharactersLastWeekLastWeek1FromJSON)),
'yesterday': (json['yesterday'].map(GetFwLeaderboardsCharactersYesterdayYesterday1FromJSON)),
};
}
export function GetFwLeaderboardsCharactersVictoryPointsToJSON(json) {
return GetFwLeaderboardsCharactersVictoryPointsToJSONTyped(json, false);
}
export function GetFwLeaderboardsCharactersVictoryPointsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'active_total': (value['activeTotal'].map(GetFwLeaderboardsCharactersActiveTotalActiveTotal1ToJSON)),
'last_week': (value['lastWeek'].map(GetFwLeaderboardsCharactersLastWeekLastWeek1ToJSON)),
'yesterday': (value['yesterday'].map(GetFwLeaderboardsCharactersYesterdayYesterday1ToJSON)),
};
}