@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
67 lines (56 loc) • 2.02 kB
text/typescript
/* 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: 4.8.19
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface FeatureProducedInVariantSuggestionRequest
*/
export interface FeatureProducedInVariantSuggestionRequest {
/**
* Feature name
* @type {string}
* @memberof FeatureProducedInVariantSuggestionRequest
*/
feature: string;
}
/**
* Check if a given object implements the FeatureProducedInVariantSuggestionRequest interface.
*/
export function instanceOfFeatureProducedInVariantSuggestionRequest(value: object): value is FeatureProducedInVariantSuggestionRequest {
if (!('feature' in value) || value['feature'] === undefined) return false;
return true;
}
export function FeatureProducedInVariantSuggestionRequestFromJSON(json: any): FeatureProducedInVariantSuggestionRequest {
return FeatureProducedInVariantSuggestionRequestFromJSONTyped(json, false);
}
export function FeatureProducedInVariantSuggestionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureProducedInVariantSuggestionRequest {
if (json == null) {
return json;
}
return {
'feature': json['feature'],
};
}
export function FeatureProducedInVariantSuggestionRequestToJSON(json: any): FeatureProducedInVariantSuggestionRequest {
return FeatureProducedInVariantSuggestionRequestToJSONTyped(json, false);
}
export function FeatureProducedInVariantSuggestionRequestToJSONTyped(value?: FeatureProducedInVariantSuggestionRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'feature': value['feature'],
};
}