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)

84 lines (83 loc) 2.97 kB
/* tslint:disable */ /* eslint-disable */ /** * EVE Swagger Interface * An OpenAPI for EVE Online * * The version of the OpenAPI document: 1.33 * * * 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 GetUniverseBloodlines200Ok interface. */ export function instanceOfGetUniverseBloodlines200Ok(value) { if (!('bloodlineId' in value) || value['bloodlineId'] === undefined) return false; if (!('charisma' in value) || value['charisma'] === undefined) return false; if (!('corporationId' in value) || value['corporationId'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; if (!('intelligence' in value) || value['intelligence'] === undefined) return false; if (!('memory' in value) || value['memory'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('perception' in value) || value['perception'] === undefined) return false; if (!('raceId' in value) || value['raceId'] === undefined) return false; if (!('shipTypeId' in value) || value['shipTypeId'] === undefined) return false; if (!('willpower' in value) || value['willpower'] === undefined) return false; return true; } export function GetUniverseBloodlines200OkFromJSON(json) { return GetUniverseBloodlines200OkFromJSONTyped(json, false); } export function GetUniverseBloodlines200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'bloodlineId': json['bloodline_id'], 'charisma': json['charisma'], 'corporationId': json['corporation_id'], 'description': json['description'], 'intelligence': json['intelligence'], 'memory': json['memory'], 'name': json['name'], 'perception': json['perception'], 'raceId': json['race_id'], 'shipTypeId': json['ship_type_id'], 'willpower': json['willpower'], }; } export function GetUniverseBloodlines200OkToJSON(json) { return GetUniverseBloodlines200OkToJSONTyped(json, false); } export function GetUniverseBloodlines200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'bloodline_id': value['bloodlineId'], 'charisma': value['charisma'], 'corporation_id': value['corporationId'], 'description': value['description'], 'intelligence': value['intelligence'], 'memory': value['memory'], 'name': value['name'], 'perception': value['perception'], 'race_id': value['raceId'], 'ship_type_id': value['shipTypeId'], 'willpower': value['willpower'], }; }