@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
66 lines (65 loc) • 2.51 kB
JavaScript
/* 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 GetContractsPublicItemsContractId200Ok interface.
*/
export function instanceOfGetContractsPublicItemsContractId200Ok(value) {
if (!('isIncluded' in value) || value['isIncluded'] === undefined)
return false;
if (!('quantity' in value) || value['quantity'] === undefined)
return false;
if (!('recordId' in value) || value['recordId'] === undefined)
return false;
if (!('typeId' in value) || value['typeId'] === undefined)
return false;
return true;
}
export function GetContractsPublicItemsContractId200OkFromJSON(json) {
return GetContractsPublicItemsContractId200OkFromJSONTyped(json, false);
}
export function GetContractsPublicItemsContractId200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'isBlueprintCopy': json['is_blueprint_copy'] == null ? undefined : json['is_blueprint_copy'],
'isIncluded': json['is_included'],
'itemId': json['item_id'] == null ? undefined : json['item_id'],
'materialEfficiency': json['material_efficiency'] == null ? undefined : json['material_efficiency'],
'quantity': json['quantity'],
'recordId': json['record_id'],
'runs': json['runs'] == null ? undefined : json['runs'],
'timeEfficiency': json['time_efficiency'] == null ? undefined : json['time_efficiency'],
'typeId': json['type_id'],
};
}
export function GetContractsPublicItemsContractId200OkToJSON(json) {
return GetContractsPublicItemsContractId200OkToJSONTyped(json, false);
}
export function GetContractsPublicItemsContractId200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'is_blueprint_copy': value['isBlueprintCopy'],
'is_included': value['isIncluded'],
'item_id': value['itemId'],
'material_efficiency': value['materialEfficiency'],
'quantity': value['quantity'],
'record_id': value['recordId'],
'runs': value['runs'],
'time_efficiency': value['timeEfficiency'],
'type_id': value['typeId'],
};
}