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)

53 lines (52 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. */ import { GetCharactersCharacterIdPlanetsPlanetIdHeadFromJSON, GetCharactersCharacterIdPlanetsPlanetIdHeadToJSON, } from './GetCharactersCharacterIdPlanetsPlanetIdHead'; /** * Check if a given object implements the GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails interface. */ export function instanceOfGetCharactersCharacterIdPlanetsPlanetIdExtractorDetails(value) { if (!('heads' in value) || value['heads'] === undefined) return false; return true; } export function GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsFromJSON(json) { return GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsFromJSONTyped(json, false); } export function GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cycleTime': json['cycle_time'] == null ? undefined : json['cycle_time'], 'headRadius': json['head_radius'] == null ? undefined : json['head_radius'], 'heads': (json['heads'].map(GetCharactersCharacterIdPlanetsPlanetIdHeadFromJSON)), 'productTypeId': json['product_type_id'] == null ? undefined : json['product_type_id'], 'qtyPerCycle': json['qty_per_cycle'] == null ? undefined : json['qty_per_cycle'], }; } export function GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsToJSON(json) { return GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsToJSONTyped(json, false); } export function GetCharactersCharacterIdPlanetsPlanetIdExtractorDetailsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'cycle_time': value['cycleTime'], 'head_radius': value['headRadius'], 'heads': (value['heads'].map(GetCharactersCharacterIdPlanetsPlanetIdHeadToJSON)), 'product_type_id': value['productTypeId'], 'qty_per_cycle': value['qtyPerCycle'], }; }