@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
48 lines • 1.51 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Commander Spellbook API
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
*
* The version of the OpenAPI document: 5.4.10
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { FeatureFromJSON, } from './Feature.js';
/**
* Check if a given object implements the FeatureProducedByVariant interface.
*/
export function instanceOfFeatureProducedByVariant(value) {
if (!('feature' in value) || value['feature'] === undefined)
return false;
if (!('quantity' in value) || value['quantity'] === undefined)
return false;
return true;
}
export function FeatureProducedByVariantFromJSON(json) {
return FeatureProducedByVariantFromJSONTyped(json, false);
}
export function FeatureProducedByVariantFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': FeatureFromJSON(json['feature']),
'quantity': json['quantity'],
};
}
export function FeatureProducedByVariantToJSON(json) {
return FeatureProducedByVariantToJSONTyped(json, false);
}
export function FeatureProducedByVariantToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'quantity': value['quantity'],
};
}
//# sourceMappingURL=FeatureProducedByVariant.js.map