@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
55 lines (54 loc) • 2.3 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.36
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GetFwLeaderboardsActiveTotalActiveTotalFromJSON, GetFwLeaderboardsActiveTotalActiveTotalToJSON, } from './GetFwLeaderboardsActiveTotalActiveTotal';
import { GetFwLeaderboardsYesterdayYesterdayFromJSON, GetFwLeaderboardsYesterdayYesterdayToJSON, } from './GetFwLeaderboardsYesterdayYesterday';
import { GetFwLeaderboardsLastWeekLastWeekFromJSON, GetFwLeaderboardsLastWeekLastWeekToJSON, } from './GetFwLeaderboardsLastWeekLastWeek';
/**
* Check if a given object implements the GetFwLeaderboardsKills interface.
*/
export function instanceOfGetFwLeaderboardsKills(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 GetFwLeaderboardsKillsFromJSON(json) {
return GetFwLeaderboardsKillsFromJSONTyped(json, false);
}
export function GetFwLeaderboardsKillsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'activeTotal': (json['active_total'].map(GetFwLeaderboardsActiveTotalActiveTotalFromJSON)),
'lastWeek': (json['last_week'].map(GetFwLeaderboardsLastWeekLastWeekFromJSON)),
'yesterday': (json['yesterday'].map(GetFwLeaderboardsYesterdayYesterdayFromJSON)),
};
}
export function GetFwLeaderboardsKillsToJSON(json) {
return GetFwLeaderboardsKillsToJSONTyped(json, false);
}
export function GetFwLeaderboardsKillsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'active_total': (value['activeTotal'].map(GetFwLeaderboardsActiveTotalActiveTotalToJSON)),
'last_week': (value['lastWeek'].map(GetFwLeaderboardsLastWeekLastWeekToJSON)),
'yesterday': (value['yesterday'].map(GetFwLeaderboardsYesterdayYesterdayToJSON)),
};
}