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)

84 lines (83 loc) 3.02 kB
/* 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 { GetCharactersCharacterIdMedalsGraphicFromJSON, GetCharactersCharacterIdMedalsGraphicToJSON, } from './GetCharactersCharacterIdMedalsGraphic'; /** * @export */ export const GetCharactersCharacterIdMedals200OkStatusEnum = { Public: 'public', Private: 'private' }; /** * Check if a given object implements the GetCharactersCharacterIdMedals200Ok interface. */ export function instanceOfGetCharactersCharacterIdMedals200Ok(value) { if (!('corporationId' in value) || value['corporationId'] === undefined) return false; if (!('date' in value) || value['date'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; if (!('graphics' in value) || value['graphics'] === undefined) return false; if (!('issuerId' in value) || value['issuerId'] === undefined) return false; if (!('medalId' in value) || value['medalId'] === undefined) return false; if (!('reason' in value) || value['reason'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('title' in value) || value['title'] === undefined) return false; return true; } export function GetCharactersCharacterIdMedals200OkFromJSON(json) { return GetCharactersCharacterIdMedals200OkFromJSONTyped(json, false); } export function GetCharactersCharacterIdMedals200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'corporationId': json['corporation_id'], 'date': (new Date(json['date'])), 'description': json['description'], 'graphics': (json['graphics'].map(GetCharactersCharacterIdMedalsGraphicFromJSON)), 'issuerId': json['issuer_id'], 'medalId': json['medal_id'], 'reason': json['reason'], 'status': json['status'], 'title': json['title'], }; } export function GetCharactersCharacterIdMedals200OkToJSON(json) { return GetCharactersCharacterIdMedals200OkToJSONTyped(json, false); } export function GetCharactersCharacterIdMedals200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'corporation_id': value['corporationId'], 'date': ((value['date']).toISOString()), 'description': value['description'], 'graphics': (value['graphics'].map(GetCharactersCharacterIdMedalsGraphicToJSON)), 'issuer_id': value['issuerId'], 'medal_id': value['medalId'], 'reason': value['reason'], 'status': value['status'], 'title': value['title'], }; }