I want to convert TimeOfDay from API into a string and show it in table. The problem is, i don't know how to convert it into a string
class UserInfo {
String tanggal = DateFormat("yyyy-MM-dd").format(DateTime.now());
TimeOfDay pulang;
UserInfo(
this.pulang,
this.tanggal,
);
}