@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
51 lines (50 loc) • 1.81 kB
JavaScript
/* 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.
*/
import { GetCharactersCharacterIdSkillsSkillFromJSON, GetCharactersCharacterIdSkillsSkillToJSON, } from './GetCharactersCharacterIdSkillsSkill';
/**
* Check if a given object implements the GetCharactersCharacterIdSkillsOk interface.
*/
export function instanceOfGetCharactersCharacterIdSkillsOk(value) {
if (!('skills' in value) || value['skills'] === undefined)
return false;
if (!('totalSp' in value) || value['totalSp'] === undefined)
return false;
return true;
}
export function GetCharactersCharacterIdSkillsOkFromJSON(json) {
return GetCharactersCharacterIdSkillsOkFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdSkillsOkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'skills': (json['skills'].map(GetCharactersCharacterIdSkillsSkillFromJSON)),
'totalSp': json['total_sp'],
'unallocatedSp': json['unallocated_sp'] == null ? undefined : json['unallocated_sp'],
};
}
export function GetCharactersCharacterIdSkillsOkToJSON(json) {
return GetCharactersCharacterIdSkillsOkToJSONTyped(json, false);
}
export function GetCharactersCharacterIdSkillsOkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'skills': (value['skills'].map(GetCharactersCharacterIdSkillsSkillToJSON)),
'total_sp': value['totalSp'],
'unallocated_sp': value['unallocatedSp'],
};
}