UNPKG

@space-cow-media/spellbook-client

Version:

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

63 lines 1.96 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 UserDetail interface. */ export function instanceOfUserDetail(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; if (!('isStaff' in value) || value['isStaff'] === undefined) return false; if (!('isActive' in value) || value['isActive'] === undefined) return false; if (!('firstName' in value) || value['firstName'] === undefined) return false; if (!('lastName' in value) || value['lastName'] === undefined) return false; return true; } export function UserDetailFromJSON(json) { return UserDetailFromJSONTyped(json, false); } export function UserDetailFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'username': json['username'], 'email': json['email'], 'isStaff': json['isStaff'], 'isActive': json['isActive'], 'firstName': json['firstName'], 'lastName': json['lastName'], }; } export function UserDetailToJSON(json) { return UserDetailToJSONTyped(json, false); } export function UserDetailToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'firstName': value['firstName'], 'lastName': value['lastName'], }; } //# sourceMappingURL=UserDetail.js.map