UNPKG

box-node-sdk

Version:

Official SDK for Box Platform APIs

21 lines 807 B
import { BoxSdkError } from '../box/errors.js'; import { sdIsString } from '../serialization/json.js'; import { sdIsMap } from '../serialization/json.js'; export function serializeSignRequestCancelRequest(val) { return { ['reason']: val.reason }; } export function deserializeSignRequestCancelRequest(val) { if (!sdIsMap(val)) { throw new BoxSdkError({ message: 'Expecting a map for "SignRequestCancelRequest"', }); } if (!(val.reason == void 0) && !sdIsString(val.reason)) { throw new BoxSdkError({ message: 'Expecting string for "reason" of type "SignRequestCancelRequest"', }); } const reason = val.reason == void 0 ? void 0 : val.reason; return { reason: reason }; } //# sourceMappingURL=signRequestCancelRequest.js.map