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)

62 lines (61 loc) 2.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. */ /** * Check if a given object implements the GetIndustryFacilities200Ok interface. */ export function instanceOfGetIndustryFacilities200Ok(value) { if (!('facilityId' in value) || value['facilityId'] === undefined) return false; if (!('ownerId' in value) || value['ownerId'] === undefined) return false; if (!('regionId' in value) || value['regionId'] === 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 GetIndustryFacilities200OkFromJSON(json) { return GetIndustryFacilities200OkFromJSONTyped(json, false); } export function GetIndustryFacilities200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'facilityId': json['facility_id'], 'ownerId': json['owner_id'], 'regionId': json['region_id'], 'solarSystemId': json['solar_system_id'], 'tax': json['tax'] == null ? undefined : json['tax'], 'typeId': json['type_id'], }; } export function GetIndustryFacilities200OkToJSON(json) { return GetIndustryFacilities200OkToJSONTyped(json, false); } export function GetIndustryFacilities200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'facility_id': value['facilityId'], 'owner_id': value['ownerId'], 'region_id': value['regionId'], 'solar_system_id': value['solarSystemId'], 'tax': value['tax'], 'type_id': value['typeId'], }; }