This code no longer works since details is now a List. We also need to allow the calling class to be able to ask for ALL details, not just those that have a name of "Message".
private _getDetails(details: any): string {
if (Boolean(details) && details.length > 0) {
const detailMessage = details.filter((x) => x.name === "Message")[0];
if (detailMessage) {
return detailMessage.value;
}
}
return "";
}