toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var originalEstimate = this.originalEstimate;
  var originalEstimateSeconds = this.originalEstimateSeconds;
  var remainingEstimate = this.remainingEstimate;
  var remainingEstimateSeconds = this.remainingEstimateSeconds;
  var timeSpent = this.timeSpent;
  var timeSpentSeconds = this.timeSpentSeconds;

  final json = <String, Object?>{};
  if (originalEstimate != null) {
    json[r'originalEstimate'] = originalEstimate;
  }
  if (originalEstimateSeconds != null) {
    json[r'originalEstimateSeconds'] = originalEstimateSeconds;
  }
  if (remainingEstimate != null) {
    json[r'remainingEstimate'] = remainingEstimate;
  }
  if (remainingEstimateSeconds != null) {
    json[r'remainingEstimateSeconds'] = remainingEstimateSeconds;
  }
  if (timeSpent != null) {
    json[r'timeSpent'] = timeSpent;
  }
  if (timeSpentSeconds != null) {
    json[r'timeSpentSeconds'] = timeSpentSeconds;
  }
  return json;
}