@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
70 lines (69 loc) • 4.52 kB
JavaScript
/* 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.
*/
import { PostUniverseIdsInventoryTypeFromJSON, PostUniverseIdsInventoryTypeToJSON, } from './PostUniverseIdsInventoryType';
import { PostUniverseIdsAllianceFromJSON, PostUniverseIdsAllianceToJSON, } from './PostUniverseIdsAlliance';
import { PostUniverseIdsStationFromJSON, PostUniverseIdsStationToJSON, } from './PostUniverseIdsStation';
import { PostUniverseIdsCharacterFromJSON, PostUniverseIdsCharacterToJSON, } from './PostUniverseIdsCharacter';
import { PostUniverseIdsCorporationFromJSON, PostUniverseIdsCorporationToJSON, } from './PostUniverseIdsCorporation';
import { PostUniverseIdsSystemFromJSON, PostUniverseIdsSystemToJSON, } from './PostUniverseIdsSystem';
import { PostUniverseIdsConstellationFromJSON, PostUniverseIdsConstellationToJSON, } from './PostUniverseIdsConstellation';
import { PostUniverseIdsRegionFromJSON, PostUniverseIdsRegionToJSON, } from './PostUniverseIdsRegion';
import { PostUniverseIdsFactionFromJSON, PostUniverseIdsFactionToJSON, } from './PostUniverseIdsFaction';
import { PostUniverseIdsAgentFromJSON, PostUniverseIdsAgentToJSON, } from './PostUniverseIdsAgent';
/**
* Check if a given object implements the PostUniverseIdsOk interface.
*/
export function instanceOfPostUniverseIdsOk(value) {
return true;
}
export function PostUniverseIdsOkFromJSON(json) {
return PostUniverseIdsOkFromJSONTyped(json, false);
}
export function PostUniverseIdsOkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'agents': json['agents'] == null ? undefined : (json['agents'].map(PostUniverseIdsAgentFromJSON)),
'alliances': json['alliances'] == null ? undefined : (json['alliances'].map(PostUniverseIdsAllianceFromJSON)),
'characters': json['characters'] == null ? undefined : (json['characters'].map(PostUniverseIdsCharacterFromJSON)),
'constellations': json['constellations'] == null ? undefined : (json['constellations'].map(PostUniverseIdsConstellationFromJSON)),
'corporations': json['corporations'] == null ? undefined : (json['corporations'].map(PostUniverseIdsCorporationFromJSON)),
'factions': json['factions'] == null ? undefined : (json['factions'].map(PostUniverseIdsFactionFromJSON)),
'inventoryTypes': json['inventory_types'] == null ? undefined : (json['inventory_types'].map(PostUniverseIdsInventoryTypeFromJSON)),
'regions': json['regions'] == null ? undefined : (json['regions'].map(PostUniverseIdsRegionFromJSON)),
'stations': json['stations'] == null ? undefined : (json['stations'].map(PostUniverseIdsStationFromJSON)),
'systems': json['systems'] == null ? undefined : (json['systems'].map(PostUniverseIdsSystemFromJSON)),
};
}
export function PostUniverseIdsOkToJSON(json) {
return PostUniverseIdsOkToJSONTyped(json, false);
}
export function PostUniverseIdsOkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'agents': value['agents'] == null ? undefined : (value['agents'].map(PostUniverseIdsAgentToJSON)),
'alliances': value['alliances'] == null ? undefined : (value['alliances'].map(PostUniverseIdsAllianceToJSON)),
'characters': value['characters'] == null ? undefined : (value['characters'].map(PostUniverseIdsCharacterToJSON)),
'constellations': value['constellations'] == null ? undefined : (value['constellations'].map(PostUniverseIdsConstellationToJSON)),
'corporations': value['corporations'] == null ? undefined : (value['corporations'].map(PostUniverseIdsCorporationToJSON)),
'factions': value['factions'] == null ? undefined : (value['factions'].map(PostUniverseIdsFactionToJSON)),
'inventory_types': value['inventoryTypes'] == null ? undefined : (value['inventoryTypes'].map(PostUniverseIdsInventoryTypeToJSON)),
'regions': value['regions'] == null ? undefined : (value['regions'].map(PostUniverseIdsRegionToJSON)),
'stations': value['stations'] == null ? undefined : (value['stations'].map(PostUniverseIdsStationToJSON)),
'systems': value['systems'] == null ? undefined : (value['systems'].map(PostUniverseIdsSystemToJSON)),
};
}