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)

54 lines (53 loc) 1.72 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. */ /** * Check if a given object implements the GetUniverseRegionsRegionIdOk interface. */ export function instanceOfGetUniverseRegionsRegionIdOk(value) { if (!('constellations' in value) || value['constellations'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('regionId' in value) || value['regionId'] === undefined) return false; return true; } export function GetUniverseRegionsRegionIdOkFromJSON(json) { return GetUniverseRegionsRegionIdOkFromJSONTyped(json, false); } export function GetUniverseRegionsRegionIdOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'constellations': json['constellations'], 'description': json['description'] == null ? undefined : json['description'], 'name': json['name'], 'regionId': json['region_id'], }; } export function GetUniverseRegionsRegionIdOkToJSON(json) { return GetUniverseRegionsRegionIdOkToJSONTyped(json, false); } export function GetUniverseRegionsRegionIdOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'constellations': value['constellations'], 'description': value['description'], 'name': value['name'], 'region_id': value['regionId'], }; }