After retrieving a Json string from the BE API, I am parsing it into an array of Products[]. This collection is structured as follows:
class Products {
ProductId: number;
ProductName: string;
Price: number;
ProductUrl: string;
}
The issue I'm facing is that the ProductUrl string is encoded. How can I automatically decode the ProductUrl within the Products class whenever mapping the Json string to Products[]?
I appreciate any help in advance. Thank you.