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)

56 lines (55 loc) 1.84 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 GetCharactersCharacterIdMining200Ok interface. */ export function instanceOfGetCharactersCharacterIdMining200Ok(value) { if (!('date' in value) || value['date'] === undefined) return false; if (!('quantity' in value) || value['quantity'] === undefined) return false; if (!('solarSystemId' in value) || value['solarSystemId'] === undefined) return false; if (!('typeId' in value) || value['typeId'] === undefined) return false; return true; } export function GetCharactersCharacterIdMining200OkFromJSON(json) { return GetCharactersCharacterIdMining200OkFromJSONTyped(json, false); } export function GetCharactersCharacterIdMining200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'date': (new Date(json['date'])), 'quantity': json['quantity'], 'solarSystemId': json['solar_system_id'], 'typeId': json['type_id'], }; } export function GetCharactersCharacterIdMining200OkToJSON(json) { return GetCharactersCharacterIdMining200OkToJSONTyped(json, false); } export function GetCharactersCharacterIdMining200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'date': ((value['date']).toISOString().substring(0, 10)), 'quantity': value['quantity'], 'solar_system_id': value['solarSystemId'], 'type_id': value['typeId'], }; }