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)

46 lines (45 loc) 1.83 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 GetCharactersCharacterIdFatigueOk interface. */ export function instanceOfGetCharactersCharacterIdFatigueOk(value) { return true; } export function GetCharactersCharacterIdFatigueOkFromJSON(json) { return GetCharactersCharacterIdFatigueOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdFatigueOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'jumpFatigueExpireDate': json['jump_fatigue_expire_date'] == null ? undefined : (new Date(json['jump_fatigue_expire_date'])), 'lastJumpDate': json['last_jump_date'] == null ? undefined : (new Date(json['last_jump_date'])), 'lastUpdateDate': json['last_update_date'] == null ? undefined : (new Date(json['last_update_date'])), }; } export function GetCharactersCharacterIdFatigueOkToJSON(json) { return GetCharactersCharacterIdFatigueOkToJSONTyped(json, false); } export function GetCharactersCharacterIdFatigueOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'jump_fatigue_expire_date': value['jumpFatigueExpireDate'] == null ? undefined : ((value['jumpFatigueExpireDate']).toISOString()), 'last_jump_date': value['lastJumpDate'] == null ? undefined : ((value['lastJumpDate']).toISOString()), 'last_update_date': value['lastUpdateDate'] == null ? undefined : ((value['lastUpdateDate']).toISOString()), }; }