TimeTrackingDetails.fromJson constructor

TimeTrackingDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory TimeTrackingDetails.fromJson(Map<String, Object?> json) {
  return TimeTrackingDetails(
    originalEstimate: json[r'originalEstimate'] as String?,
    originalEstimateSeconds:
        (json[r'originalEstimateSeconds'] as num?)?.toInt(),
    remainingEstimate: json[r'remainingEstimate'] as String?,
    remainingEstimateSeconds:
        (json[r'remainingEstimateSeconds'] as num?)?.toInt(),
    timeSpent: json[r'timeSpent'] as String?,
    timeSpentSeconds: (json[r'timeSpentSeconds'] as num?)?.toInt(),
  );
}