Been in this situation countless times. Everytime this happens I promise myself I will be grateful and enjoy the ability to breathe through both of my nostrils once it happens and yet I forget about it the next day
Though I know very little of enum and never used it before, I think this is what I needed. I couldnt imagine there would exist a type exactly for this purpose since I could consider adding or deprecating data later in time. I would need time understanding how I need to restructure the current JSON object to accomodate enums, but I think it will be worth it. Thanks for you time!
Ive heard about enums before, but I never really paid attention to them since I never got a need to use them in any of my projects till now. I think this is exactly what I need. Ill research more on it
Thank you so much for your help
I love when people make the effort to do this kind of stuff and I got the opportunity to have someone do it for my post.
Thanks dude. You have made my day…