toJson method
Implementation
Map<String, dynamic> toJson() {
final currentRestoreRateInMegaBytesPerSecond =
this.currentRestoreRateInMegaBytesPerSecond;
final elapsedTimeInSeconds = this.elapsedTimeInSeconds;
final estimatedTimeToCompletionInSeconds =
this.estimatedTimeToCompletionInSeconds;
final progressInMegaBytes = this.progressInMegaBytes;
final snapshotSizeInMegaBytes = this.snapshotSizeInMegaBytes;
final status = this.status;
return {
if (currentRestoreRateInMegaBytesPerSecond != null)
'CurrentRestoreRateInMegaBytesPerSecond':
currentRestoreRateInMegaBytesPerSecond,
if (elapsedTimeInSeconds != null)
'ElapsedTimeInSeconds': elapsedTimeInSeconds,
if (estimatedTimeToCompletionInSeconds != null)
'EstimatedTimeToCompletionInSeconds':
estimatedTimeToCompletionInSeconds,
if (progressInMegaBytes != null)
'ProgressInMegaBytes': progressInMegaBytes,
if (snapshotSizeInMegaBytes != null)
'SnapshotSizeInMegaBytes': snapshotSizeInMegaBytes,
if (status != null) 'Status': status,
};
}