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)

52 lines (51 loc) 1.69 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. */ /** * Check if a given object implements the GetCharactersCharacterIdFwStatsVictoryPoints interface. */ export function instanceOfGetCharactersCharacterIdFwStatsVictoryPoints(value) { if (!('lastWeek' in value) || value['lastWeek'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('yesterday' in value) || value['yesterday'] === undefined) return false; return true; } export function GetCharactersCharacterIdFwStatsVictoryPointsFromJSON(json) { return GetCharactersCharacterIdFwStatsVictoryPointsFromJSONTyped(json, false); } export function GetCharactersCharacterIdFwStatsVictoryPointsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'lastWeek': json['last_week'], 'total': json['total'], 'yesterday': json['yesterday'], }; } export function GetCharactersCharacterIdFwStatsVictoryPointsToJSON(json) { return GetCharactersCharacterIdFwStatsVictoryPointsToJSONTyped(json, false); } export function GetCharactersCharacterIdFwStatsVictoryPointsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'last_week': value['lastWeek'], 'total': value['total'], 'yesterday': value['yesterday'], }; }