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.85 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 { GetKillmailsKillmailIdKillmailHashItemFromJSON, GetKillmailsKillmailIdKillmailHashItemToJSON, } from './GetKillmailsKillmailIdKillmailHashItem'; import { GetKillmailsKillmailIdKillmailHashPositionFromJSON, GetKillmailsKillmailIdKillmailHashPositionToJSON, } from './GetKillmailsKillmailIdKillmailHashPosition'; /** * Check if a given object implements the GetKillmailsKillmailIdKillmailHashVictim interface. */ export function instanceOfGetKillmailsKillmailIdKillmailHashVictim(value) { if (!('damageTaken' in value) || value['damageTaken'] === undefined) return false; if (!('shipTypeId' in value) || value['shipTypeId'] === undefined) return false; return true; } export function GetKillmailsKillmailIdKillmailHashVictimFromJSON(json) { return GetKillmailsKillmailIdKillmailHashVictimFromJSONTyped(json, false); } export function GetKillmailsKillmailIdKillmailHashVictimFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'allianceId': json['alliance_id'] == null ? undefined : json['alliance_id'], 'characterId': json['character_id'] == null ? undefined : json['character_id'], 'corporationId': json['corporation_id'] == null ? undefined : json['corporation_id'], 'damageTaken': json['damage_taken'], 'factionId': json['faction_id'] == null ? undefined : json['faction_id'], 'items': json['items'] == null ? undefined : (json['items'].map(GetKillmailsKillmailIdKillmailHashItemFromJSON)), 'position': json['position'] == null ? undefined : GetKillmailsKillmailIdKillmailHashPositionFromJSON(json['position']), 'shipTypeId': json['ship_type_id'], }; } export function GetKillmailsKillmailIdKillmailHashVictimToJSON(json) { return GetKillmailsKillmailIdKillmailHashVictimToJSONTyped(json, false); } export function GetKillmailsKillmailIdKillmailHashVictimToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'alliance_id': value['allianceId'], 'character_id': value['characterId'], 'corporation_id': value['corporationId'], 'damage_taken': value['damageTaken'], 'faction_id': value['factionId'], 'items': value['items'] == null ? undefined : (value['items'].map(GetKillmailsKillmailIdKillmailHashItemToJSON)), 'position': GetKillmailsKillmailIdKillmailHashPositionToJSON(value['position']), 'ship_type_id': value['shipTypeId'], }; }