toJson method
Implementation
Map<String, dynamic> toJson() {
final friday = this.friday;
final monday = this.monday;
final saturday = this.saturday;
final sunday = this.sunday;
final thursday = this.thursday;
final tuesday = this.tuesday;
final wednesday = this.wednesday;
return {
if (friday != null) 'Friday': friday,
if (monday != null) 'Monday': monday,
if (saturday != null) 'Saturday': saturday,
if (sunday != null) 'Sunday': sunday,
if (thursday != null) 'Thursday': thursday,
if (tuesday != null) 'Tuesday': tuesday,
if (wednesday != null) 'Wednesday': wednesday,
};
}