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)

50 lines (49 loc) 1.59 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 GetSovereigntyMap200Ok interface. */ export function instanceOfGetSovereigntyMap200Ok(value) { if (!('systemId' in value) || value['systemId'] === undefined) return false; return true; } export function GetSovereigntyMap200OkFromJSON(json) { return GetSovereigntyMap200OkFromJSONTyped(json, false); } export function GetSovereigntyMap200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'allianceId': json['alliance_id'] == null ? undefined : json['alliance_id'], 'corporationId': json['corporation_id'] == null ? undefined : json['corporation_id'], 'factionId': json['faction_id'] == null ? undefined : json['faction_id'], 'systemId': json['system_id'], }; } export function GetSovereigntyMap200OkToJSON(json) { return GetSovereigntyMap200OkToJSONTyped(json, false); } export function GetSovereigntyMap200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'alliance_id': value['allianceId'], 'corporation_id': value['corporationId'], 'faction_id': value['factionId'], 'system_id': value['systemId'], }; }