The response data to assert
Error if the data is not a valid AmbeedGetPmsSdsByAmsResponse
assertIsAmbeedGetPmsSdsByAmsResponse(response);
console.log(response.value.sds_list);
export function assertIsAmbeedGetPmsSdsByAmsResponse(
data: unknown,
): asserts data is AmbeedGetPmsSdsByAmsResponse {
if (!isAmbeedGetPmsSdsByAmsResponse(data)) {
throw new Error('assertIsAmbeedGetPmsSdsByAmsResponse failed');
}
}
Type assertion that the given data is a valid AmbeedGetPmsSdsByAmsResponse. Throws if the data does not match the expected structure.