toJson method
Implementation
Map<String, Object?> toJson() {
var breachTime = this.breachTime;
var breached = this.breached;
var elapsedTime = this.elapsedTime;
var goalDuration = this.goalDuration;
var paused = this.paused;
var remainingTime = this.remainingTime;
var startTime = this.startTime;
var withinCalendarHours = this.withinCalendarHours;
final json = <String, Object?>{};
if (breachTime != null) {
json[r'breachTime'] = breachTime.toJson();
}
json[r'breached'] = breached;
if (elapsedTime != null) {
json[r'elapsedTime'] = elapsedTime.toJson();
}
if (goalDuration != null) {
json[r'goalDuration'] = goalDuration.toJson();
}
json[r'paused'] = paused;
if (remainingTime != null) {
json[r'remainingTime'] = remainingTime.toJson();
}
if (startTime != null) {
json[r'startTime'] = startTime.toJson();
}
json[r'withinCalendarHours'] = withinCalendarHours;
return json;
}