unprotectModel

Function

Given a model, determine if it is protected, and unprotect it if it is. Otherwise, just resolve with the same result.

  • unprotectModel(model: IModel, requestOptions: IRequestOptions) : any

Parameters

Parameter Type Default Notes
model Required IModel

Model Object

requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

any

Function defined in common/src/items/unprotect-model.ts:11