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)

72 lines (71 loc) 3.07 kB
/* 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. */ import { GetUniverseSystemsSystemIdPlanetFromJSON, GetUniverseSystemsSystemIdPlanetToJSON, } from './GetUniverseSystemsSystemIdPlanet'; import { GetUniverseSystemsSystemIdPositionFromJSON, GetUniverseSystemsSystemIdPositionToJSON, } from './GetUniverseSystemsSystemIdPosition'; /** * Check if a given object implements the GetUniverseSystemsSystemIdOk interface. */ export function instanceOfGetUniverseSystemsSystemIdOk(value) { if (!('constellationId' in value) || value['constellationId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('position' in value) || value['position'] === undefined) return false; if (!('securityStatus' in value) || value['securityStatus'] === undefined) return false; if (!('systemId' in value) || value['systemId'] === undefined) return false; return true; } export function GetUniverseSystemsSystemIdOkFromJSON(json) { return GetUniverseSystemsSystemIdOkFromJSONTyped(json, false); } export function GetUniverseSystemsSystemIdOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'constellationId': json['constellation_id'], 'name': json['name'], 'planets': json['planets'] == null ? undefined : (json['planets'].map(GetUniverseSystemsSystemIdPlanetFromJSON)), 'position': GetUniverseSystemsSystemIdPositionFromJSON(json['position']), 'securityClass': json['security_class'] == null ? undefined : json['security_class'], 'securityStatus': json['security_status'], 'starId': json['star_id'] == null ? undefined : json['star_id'], 'stargates': json['stargates'] == null ? undefined : json['stargates'], 'stations': json['stations'] == null ? undefined : json['stations'], 'systemId': json['system_id'], }; } export function GetUniverseSystemsSystemIdOkToJSON(json) { return GetUniverseSystemsSystemIdOkToJSONTyped(json, false); } export function GetUniverseSystemsSystemIdOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'constellation_id': value['constellationId'], 'name': value['name'], 'planets': value['planets'] == null ? undefined : (value['planets'].map(GetUniverseSystemsSystemIdPlanetToJSON)), 'position': GetUniverseSystemsSystemIdPositionToJSON(value['position']), 'security_class': value['securityClass'], 'security_status': value['securityStatus'], 'star_id': value['starId'], 'stargates': value['stargates'], 'stations': value['stations'], 'system_id': value['systemId'], }; }