@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
73 lines (72 loc) • 4.02 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 { GetCharactersCharacterIdPlanetsPlanetIdFactoryDetailsFromJSON, GetCharactersCharacterIdPlanetsPlanetIdFactoryDetailsToJSON, } from './GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails';
import { GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsFromJSON, GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsToJSON, } from './GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails';
import { GetCharactersCharacterIdPlanetsPlanetIdContentFromJSON, GetCharactersCharacterIdPlanetsPlanetIdContentToJSON, } from './GetCharactersCharacterIdPlanetsPlanetIdContent';
/**
* Check if a given object implements the GetCharactersCharacterIdPlanetsPlanetIdPin interface.
*/
export function instanceOfGetCharactersCharacterIdPlanetsPlanetIdPin(value) {
if (!('latitude' in value) || value['latitude'] === undefined)
return false;
if (!('longitude' in value) || value['longitude'] === undefined)
return false;
if (!('pinId' in value) || value['pinId'] === undefined)
return false;
if (!('typeId' in value) || value['typeId'] === undefined)
return false;
return true;
}
export function GetCharactersCharacterIdPlanetsPlanetIdPinFromJSON(json) {
return GetCharactersCharacterIdPlanetsPlanetIdPinFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdPlanetsPlanetIdPinFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'contents': json['contents'] == null ? undefined : (json['contents'].map(GetCharactersCharacterIdPlanetsPlanetIdContentFromJSON)),
'expiryTime': json['expiry_time'] == null ? undefined : (new Date(json['expiry_time'])),
'extractorDetails': json['extractor_details'] == null ? undefined : GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsFromJSON(json['extractor_details']),
'factoryDetails': json['factory_details'] == null ? undefined : GetCharactersCharacterIdPlanetsPlanetIdFactoryDetailsFromJSON(json['factory_details']),
'installTime': json['install_time'] == null ? undefined : (new Date(json['install_time'])),
'lastCycleStart': json['last_cycle_start'] == null ? undefined : (new Date(json['last_cycle_start'])),
'latitude': json['latitude'],
'longitude': json['longitude'],
'pinId': json['pin_id'],
'schematicId': json['schematic_id'] == null ? undefined : json['schematic_id'],
'typeId': json['type_id'],
};
}
export function GetCharactersCharacterIdPlanetsPlanetIdPinToJSON(json) {
return GetCharactersCharacterIdPlanetsPlanetIdPinToJSONTyped(json, false);
}
export function GetCharactersCharacterIdPlanetsPlanetIdPinToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'contents': value['contents'] == null ? undefined : (value['contents'].map(GetCharactersCharacterIdPlanetsPlanetIdContentToJSON)),
'expiry_time': value['expiryTime'] == null ? undefined : ((value['expiryTime']).toISOString()),
'extractor_details': GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsToJSON(value['extractorDetails']),
'factory_details': GetCharactersCharacterIdPlanetsPlanetIdFactoryDetailsToJSON(value['factoryDetails']),
'install_time': value['installTime'] == null ? undefined : ((value['installTime']).toISOString()),
'last_cycle_start': value['lastCycleStart'] == null ? undefined : ((value['lastCycleStart']).toISOString()),
'latitude': value['latitude'],
'longitude': value['longitude'],
'pin_id': value['pinId'],
'schematic_id': value['schematicId'],
'type_id': value['typeId'],
};
}