toJson method
dynamic
toJson()
Implementation
dynamic toJson() => {
// TODO: scream at the dart team
if (day != null) 'day': day?.toInt(),
'date': date,
'subs': subs.map((sub) => sub.toJson()).toList(),
};