toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (backupId != null) 'backupId': backupId!,
if (duration != null) 'duration': duration!,
if (startTime != null) 'startTime': startTime!,
if (state != null) 'state': state!,
};