@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
85 lines (84 loc) • 4.41 kB
JavaScript
/* 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 { GetDogmaEffectsEffectIdModifierFromJSON, GetDogmaEffectsEffectIdModifierToJSON, } from './GetDogmaEffectsEffectIdModifier';
/**
* Check if a given object implements the GetDogmaEffectsEffectIdOk interface.
*/
export function instanceOfGetDogmaEffectsEffectIdOk(value) {
if (!('effectId' in value) || value['effectId'] === undefined)
return false;
return true;
}
export function GetDogmaEffectsEffectIdOkFromJSON(json) {
return GetDogmaEffectsEffectIdOkFromJSONTyped(json, false);
}
export function GetDogmaEffectsEffectIdOkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'description': json['description'] == null ? undefined : json['description'],
'disallowAutoRepeat': json['disallow_auto_repeat'] == null ? undefined : json['disallow_auto_repeat'],
'dischargeAttributeId': json['discharge_attribute_id'] == null ? undefined : json['discharge_attribute_id'],
'displayName': json['display_name'] == null ? undefined : json['display_name'],
'durationAttributeId': json['duration_attribute_id'] == null ? undefined : json['duration_attribute_id'],
'effectCategory': json['effect_category'] == null ? undefined : json['effect_category'],
'effectId': json['effect_id'],
'electronicChance': json['electronic_chance'] == null ? undefined : json['electronic_chance'],
'falloffAttributeId': json['falloff_attribute_id'] == null ? undefined : json['falloff_attribute_id'],
'iconId': json['icon_id'] == null ? undefined : json['icon_id'],
'isAssistance': json['is_assistance'] == null ? undefined : json['is_assistance'],
'isOffensive': json['is_offensive'] == null ? undefined : json['is_offensive'],
'isWarpSafe': json['is_warp_safe'] == null ? undefined : json['is_warp_safe'],
'modifiers': json['modifiers'] == null ? undefined : (json['modifiers'].map(GetDogmaEffectsEffectIdModifierFromJSON)),
'name': json['name'] == null ? undefined : json['name'],
'postExpression': json['post_expression'] == null ? undefined : json['post_expression'],
'preExpression': json['pre_expression'] == null ? undefined : json['pre_expression'],
'published': json['published'] == null ? undefined : json['published'],
'rangeAttributeId': json['range_attribute_id'] == null ? undefined : json['range_attribute_id'],
'rangeChance': json['range_chance'] == null ? undefined : json['range_chance'],
'trackingSpeedAttributeId': json['tracking_speed_attribute_id'] == null ? undefined : json['tracking_speed_attribute_id'],
};
}
export function GetDogmaEffectsEffectIdOkToJSON(json) {
return GetDogmaEffectsEffectIdOkToJSONTyped(json, false);
}
export function GetDogmaEffectsEffectIdOkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'description': value['description'],
'disallow_auto_repeat': value['disallowAutoRepeat'],
'discharge_attribute_id': value['dischargeAttributeId'],
'display_name': value['displayName'],
'duration_attribute_id': value['durationAttributeId'],
'effect_category': value['effectCategory'],
'effect_id': value['effectId'],
'electronic_chance': value['electronicChance'],
'falloff_attribute_id': value['falloffAttributeId'],
'icon_id': value['iconId'],
'is_assistance': value['isAssistance'],
'is_offensive': value['isOffensive'],
'is_warp_safe': value['isWarpSafe'],
'modifiers': value['modifiers'] == null ? undefined : (value['modifiers'].map(GetDogmaEffectsEffectIdModifierToJSON)),
'name': value['name'],
'post_expression': value['postExpression'],
'pre_expression': value['preExpression'],
'published': value['published'],
'range_attribute_id': value['rangeAttributeId'],
'range_chance': value['rangeChance'],
'tracking_speed_attribute_id': value['trackingSpeedAttributeId'],
};
}