Function to close this pattern
The id of the BottomSheet element
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function to close this pattern