UNPKG

@fnt-eve/esi-client-typescript

Version:

[![npm version](https://img.shields.io/npm/v/@fnt-eve/esi-client-typescript)](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)

50 lines (49 loc) 1.73 kB
/* 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 { GetFwLeaderboardsVictoryPointsFromJSON, GetFwLeaderboardsVictoryPointsToJSON, } from './GetFwLeaderboardsVictoryPoints'; import { GetFwLeaderboardsKillsFromJSON, GetFwLeaderboardsKillsToJSON, } from './GetFwLeaderboardsKills'; /** * Check if a given object implements the GetFwLeaderboardsOk interface. */ export function instanceOfGetFwLeaderboardsOk(value) { if (!('kills' in value) || value['kills'] === undefined) return false; if (!('victoryPoints' in value) || value['victoryPoints'] === undefined) return false; return true; } export function GetFwLeaderboardsOkFromJSON(json) { return GetFwLeaderboardsOkFromJSONTyped(json, false); } export function GetFwLeaderboardsOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'kills': GetFwLeaderboardsKillsFromJSON(json['kills']), 'victoryPoints': GetFwLeaderboardsVictoryPointsFromJSON(json['victory_points']), }; } export function GetFwLeaderboardsOkToJSON(json) { return GetFwLeaderboardsOkToJSONTyped(json, false); } export function GetFwLeaderboardsOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'kills': GetFwLeaderboardsKillsToJSON(value['kills']), 'victory_points': GetFwLeaderboardsVictoryPointsToJSON(value['victoryPoints']), }; }