@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
46 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.
*/
/**
* Check if a given object implements the PatchedUserDetailRequest interface.
*/
export function instanceOfPatchedUserDetailRequest(value) {
return true;
}
export function PatchedUserDetailRequestFromJSON(json) {
return PatchedUserDetailRequestFromJSONTyped(json, false);
}
export function PatchedUserDetailRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'password': json['password'] == null ? undefined : json['password'],
'firstName': json['firstName'] == null ? undefined : json['firstName'],
'lastName': json['lastName'] == null ? undefined : json['lastName'],
};
}
export function PatchedUserDetailRequestToJSON(json) {
return PatchedUserDetailRequestToJSONTyped(json, false);
}
export function PatchedUserDetailRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'password': value['password'],
'firstName': value['firstName'],
'lastName': value['lastName'],
};
}
//# sourceMappingURL=PatchedUserDetailRequest.js.map