UNPKG

@space-cow-media/spellbook-client

Version:

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

54 lines 1.49 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfUser = instanceOfUser; exports.UserFromJSON = UserFromJSON; exports.UserFromJSONTyped = UserFromJSONTyped; exports.UserToJSON = UserToJSON; exports.UserToJSONTyped = UserToJSONTyped; /** * Check if a given object implements the User interface. */ function instanceOfUser(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; return true; } function UserFromJSON(json) { return UserFromJSONTyped(json, false); } function UserFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'username': json['username'], }; } function UserToJSON(json) { return UserToJSONTyped(json, false); } function UserToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'username': value['username'], }; } //# sourceMappingURL=user.js.map