I have a flutter theme json generated from https://appainter.dev/ (AppPainter). I don't want to use a json file to load because I want to dynamically switch between themes for lightmode and darkmode.
So I need the solution of converting json to a dart file.