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)

64 lines (63 loc) 2.55 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 GetKillmailsKillmailIdKillmailHashAttacker interface. */ export function instanceOfGetKillmailsKillmailIdKillmailHashAttacker(value) { if (!('damageDone' in value) || value['damageDone'] === undefined) return false; if (!('finalBlow' in value) || value['finalBlow'] === undefined) return false; if (!('securityStatus' in value) || value['securityStatus'] === undefined) return false; return true; } export function GetKillmailsKillmailIdKillmailHashAttackerFromJSON(json) { return GetKillmailsKillmailIdKillmailHashAttackerFromJSONTyped(json, false); } export function GetKillmailsKillmailIdKillmailHashAttackerFromJSONTyped(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'], 'damageDone': json['damage_done'], 'factionId': json['faction_id'] == null ? undefined : json['faction_id'], 'finalBlow': json['final_blow'], 'securityStatus': json['security_status'], 'shipTypeId': json['ship_type_id'] == null ? undefined : json['ship_type_id'], 'weaponTypeId': json['weapon_type_id'] == null ? undefined : json['weapon_type_id'], }; } export function GetKillmailsKillmailIdKillmailHashAttackerToJSON(json) { return GetKillmailsKillmailIdKillmailHashAttackerToJSONTyped(json, false); } export function GetKillmailsKillmailIdKillmailHashAttackerToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'alliance_id': value['allianceId'], 'character_id': value['characterId'], 'corporation_id': value['corporationId'], 'damage_done': value['damageDone'], 'faction_id': value['factionId'], 'final_blow': value['finalBlow'], 'security_status': value['securityStatus'], 'ship_type_id': value['shipTypeId'], 'weapon_type_id': value['weaponTypeId'], }; }