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)

63 lines (62 loc) 1.98 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. */ /** * @export */ export const GetAlliancesAllianceIdContacts200OkContactTypeEnum = { Character: 'character', Corporation: 'corporation', Alliance: 'alliance', Faction: 'faction' }; /** * Check if a given object implements the GetAlliancesAllianceIdContacts200Ok interface. */ export function instanceOfGetAlliancesAllianceIdContacts200Ok(value) { if (!('contactId' in value) || value['contactId'] === undefined) return false; if (!('contactType' in value) || value['contactType'] === undefined) return false; if (!('standing' in value) || value['standing'] === undefined) return false; return true; } export function GetAlliancesAllianceIdContacts200OkFromJSON(json) { return GetAlliancesAllianceIdContacts200OkFromJSONTyped(json, false); } export function GetAlliancesAllianceIdContacts200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'contactId': json['contact_id'], 'contactType': json['contact_type'], 'labelIds': json['label_ids'] == null ? undefined : json['label_ids'], 'standing': json['standing'], }; } export function GetAlliancesAllianceIdContacts200OkToJSON(json) { return GetAlliancesAllianceIdContacts200OkToJSONTyped(json, false); } export function GetAlliancesAllianceIdContacts200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'contact_id': value['contactId'], 'contact_type': value['contactType'], 'label_ids': value['labelIds'], 'standing': value['standing'], }; }