toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'phases': [for (var phase in phases) phase.toJson()],
  if (unsettledSteps.isNotEmpty) 'unsettledSteps': unsettledSteps,
  if (pooledOnlyDifferences.isNotEmpty)
    'pooledOnlyDifferences': pooledOnlyDifferences,
  if (stillTicking.isNotEmpty) 'stillTicking': stillTicking,
};