@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
74 lines (73 loc) • 2.79 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.33
*
*
* 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 GetUniverseFactions200Ok interface.
*/
export function instanceOfGetUniverseFactions200Ok(value) {
if (!('description' in value) || value['description'] === undefined)
return false;
if (!('factionId' in value) || value['factionId'] === undefined)
return false;
if (!('isUnique' in value) || value['isUnique'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('sizeFactor' in value) || value['sizeFactor'] === undefined)
return false;
if (!('stationCount' in value) || value['stationCount'] === undefined)
return false;
if (!('stationSystemCount' in value) || value['stationSystemCount'] === undefined)
return false;
return true;
}
export function GetUniverseFactions200OkFromJSON(json) {
return GetUniverseFactions200OkFromJSONTyped(json, false);
}
export function GetUniverseFactions200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'corporationId': json['corporation_id'] == null ? undefined : json['corporation_id'],
'description': json['description'],
'factionId': json['faction_id'],
'isUnique': json['is_unique'],
'militiaCorporationId': json['militia_corporation_id'] == null ? undefined : json['militia_corporation_id'],
'name': json['name'],
'sizeFactor': json['size_factor'],
'solarSystemId': json['solar_system_id'] == null ? undefined : json['solar_system_id'],
'stationCount': json['station_count'],
'stationSystemCount': json['station_system_count'],
};
}
export function GetUniverseFactions200OkToJSON(json) {
return GetUniverseFactions200OkToJSONTyped(json, false);
}
export function GetUniverseFactions200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'corporation_id': value['corporationId'],
'description': value['description'],
'faction_id': value['factionId'],
'is_unique': value['isUnique'],
'militia_corporation_id': value['militiaCorporationId'],
'name': value['name'],
'size_factor': value['sizeFactor'],
'solar_system_id': value['solarSystemId'],
'station_count': value['stationCount'],
'station_system_count': value['stationSystemCount'],
};
}