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)

50 lines (49 loc) 1.77 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 GetCharactersCharacterIdOnlineOk interface. */ export function instanceOfGetCharactersCharacterIdOnlineOk(value) { if (!('online' in value) || value['online'] === undefined) return false; return true; } export function GetCharactersCharacterIdOnlineOkFromJSON(json) { return GetCharactersCharacterIdOnlineOkFromJSONTyped(json, false); } export function GetCharactersCharacterIdOnlineOkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'lastLogin': json['last_login'] == null ? undefined : (new Date(json['last_login'])), 'lastLogout': json['last_logout'] == null ? undefined : (new Date(json['last_logout'])), 'logins': json['logins'] == null ? undefined : json['logins'], 'online': json['online'], }; } export function GetCharactersCharacterIdOnlineOkToJSON(json) { return GetCharactersCharacterIdOnlineOkToJSONTyped(json, false); } export function GetCharactersCharacterIdOnlineOkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'last_login': value['lastLogin'] == null ? undefined : ((value['lastLogin']).toISOString()), 'last_logout': value['lastLogout'] == null ? undefined : ((value['lastLogout']).toISOString()), 'logins': value['logins'], 'online': value['online'], }; }