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)

62 lines (61 loc) 2.18 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 { GetFwStatsVictoryPointsFromJSON, GetFwStatsVictoryPointsToJSON, } from './GetFwStatsVictoryPoints'; import { GetFwStatsKillsFromJSON, GetFwStatsKillsToJSON, } from './GetFwStatsKills'; /** * Check if a given object implements the GetFwStats200Ok interface. */ export function instanceOfGetFwStats200Ok(value) { if (!('factionId' in value) || value['factionId'] === undefined) return false; if (!('kills' in value) || value['kills'] === undefined) return false; if (!('pilots' in value) || value['pilots'] === undefined) return false; if (!('systemsControlled' in value) || value['systemsControlled'] === undefined) return false; if (!('victoryPoints' in value) || value['victoryPoints'] === undefined) return false; return true; } export function GetFwStats200OkFromJSON(json) { return GetFwStats200OkFromJSONTyped(json, false); } export function GetFwStats200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'factionId': json['faction_id'], 'kills': GetFwStatsKillsFromJSON(json['kills']), 'pilots': json['pilots'], 'systemsControlled': json['systems_controlled'], 'victoryPoints': GetFwStatsVictoryPointsFromJSON(json['victory_points']), }; } export function GetFwStats200OkToJSON(json) { return GetFwStats200OkToJSONTyped(json, false); } export function GetFwStats200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'faction_id': value['factionId'], 'kills': GetFwStatsKillsToJSON(value['kills']), 'pilots': value['pilots'], 'systems_controlled': value['systemsControlled'], 'victory_points': GetFwStatsVictoryPointsToJSON(value['victoryPoints']), }; }