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)

48 lines (47 loc) 1.58 kB
/* 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 GetCharactersCharacterIdLocationOk interface. */ export function instanceOfGetCharactersCharacterIdLocationOk(value) { if (!('solarSystemId' in value) || value['solarSystemId'] === undefined) return false; return true; } export function GetCharactersCharacterIdLocationOkFromJSON(json) { return GetCharactersCharacterIdLocationOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdLocationOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'solarSystemId': json['solar_system_id'], 'stationId': json['station_id'] == null ? undefined : json['station_id'], 'structureId': json['structure_id'] == null ? undefined : json['structure_id'], }; } export function GetCharactersCharacterIdLocationOkToJSON(json) { return GetCharactersCharacterIdLocationOkToJSONTyped(json, false); } export function GetCharactersCharacterIdLocationOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'solar_system_id': value['solarSystemId'], 'station_id': value['stationId'], 'structure_id': value['structureId'], }; }