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)

62 lines (61 loc) 2.26 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 GetCharactersCharacterIdPlanetsPlanetIdRoute interface. */ export function instanceOfGetCharactersCharacterIdPlanetsPlanetIdRoute(value) { if (!('contentTypeId' in value) || value['contentTypeId'] === undefined) return false; if (!('destinationPinId' in value) || value['destinationPinId'] === undefined) return false; if (!('quantity' in value) || value['quantity'] === undefined) return false; if (!('routeId' in value) || value['routeId'] === undefined) return false; if (!('sourcePinId' in value) || value['sourcePinId'] === undefined) return false; return true; } export function GetCharactersCharacterIdPlanetsPlanetIdRouteFromJSON(json) { return GetCharactersCharacterIdPlanetsPlanetIdRouteFromJSONTyped(json, false); } export function GetCharactersCharacterIdPlanetsPlanetIdRouteFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'contentTypeId': json['content_type_id'], 'destinationPinId': json['destination_pin_id'], 'quantity': json['quantity'], 'routeId': json['route_id'], 'sourcePinId': json['source_pin_id'], 'waypoints': json['waypoints'] == null ? undefined : json['waypoints'], }; } export function GetCharactersCharacterIdPlanetsPlanetIdRouteToJSON(json) { return GetCharactersCharacterIdPlanetsPlanetIdRouteToJSONTyped(json, false); } export function GetCharactersCharacterIdPlanetsPlanetIdRouteToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content_type_id': value['contentTypeId'], 'destination_pin_id': value['destinationPinId'], 'quantity': value['quantity'], 'route_id': value['routeId'], 'source_pin_id': value['sourcePinId'], 'waypoints': value['waypoints'], }; }