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)

61 lines (60 loc) 2.33 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 { GetUniverseConstellationsConstellationIdPositionFromJSON, GetUniverseConstellationsConstellationIdPositionToJSON, } from './GetUniverseConstellationsConstellationIdPosition'; /** * Check if a given object implements the GetUniverseConstellationsConstellationIdOk interface. */ export function instanceOfGetUniverseConstellationsConstellationIdOk(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 (!('regionId' in value) || value['regionId'] === undefined) return false; if (!('systems' in value) || value['systems'] === undefined) return false; return true; } export function GetUniverseConstellationsConstellationIdOkFromJSON(json) { return GetUniverseConstellationsConstellationIdOkFromJSONTyped(json, false); } export function GetUniverseConstellationsConstellationIdOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'constellationId': json['constellation_id'], 'name': json['name'], 'position': GetUniverseConstellationsConstellationIdPositionFromJSON(json['position']), 'regionId': json['region_id'], 'systems': json['systems'], }; } export function GetUniverseConstellationsConstellationIdOkToJSON(json) { return GetUniverseConstellationsConstellationIdOkToJSONTyped(json, false); } export function GetUniverseConstellationsConstellationIdOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'constellation_id': value['constellationId'], 'name': value['name'], 'position': GetUniverseConstellationsConstellationIdPositionToJSON(value['position']), 'region_id': value['regionId'], 'systems': value['systems'], }; }