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)

52 lines (51 loc) 1.63 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 GetCharactersCharacterIdShipOk interface. */ export function instanceOfGetCharactersCharacterIdShipOk(value) { if (!('shipItemId' in value) || value['shipItemId'] === undefined) return false; if (!('shipName' in value) || value['shipName'] === undefined) return false; if (!('shipTypeId' in value) || value['shipTypeId'] === undefined) return false; return true; } export function GetCharactersCharacterIdShipOkFromJSON(json) { return GetCharactersCharacterIdShipOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdShipOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'shipItemId': json['ship_item_id'], 'shipName': json['ship_name'], 'shipTypeId': json['ship_type_id'], }; } export function GetCharactersCharacterIdShipOkToJSON(json) { return GetCharactersCharacterIdShipOkToJSONTyped(json, false); } export function GetCharactersCharacterIdShipOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'ship_item_id': value['shipItemId'], 'ship_name': value['shipName'], 'ship_type_id': value['shipTypeId'], }; }