UNPKG

@space-cow-media/spellbook-client

Version:

An Open Api generated client for the Commander Spellbook backend REST API.

47 lines 1.33 kB
/* 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. */ /** * Check if a given object implements the WebsiteProperty interface. */ export function instanceOfWebsiteProperty(value) { if (!('key' in value) || value['key'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } export function WebsitePropertyFromJSON(json) { return WebsitePropertyFromJSONTyped(json, false); } export function WebsitePropertyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'key': json['key'], 'value': json['value'], }; } export function WebsitePropertyToJSON(json) { return WebsitePropertyToJSONTyped(json, false); } export function WebsitePropertyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'value': value['value'], }; } //# sourceMappingURL=WebsiteProperty.js.map