@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
52 lines (51 loc) • 1.53 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.
*/
/**
* Check if a given object implements the GetFwStatsVictoryPoints interface.
*/
export function instanceOfGetFwStatsVictoryPoints(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 GetFwStatsVictoryPointsFromJSON(json) {
return GetFwStatsVictoryPointsFromJSONTyped(json, false);
}
export function GetFwStatsVictoryPointsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'lastWeek': json['last_week'],
'total': json['total'],
'yesterday': json['yesterday'],
};
}
export function GetFwStatsVictoryPointsToJSON(json) {
return GetFwStatsVictoryPointsToJSONTyped(json, false);
}
export function GetFwStatsVictoryPointsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'last_week': value['lastWeek'],
'total': value['total'],
'yesterday': value['yesterday'],
};
}