toJson method

Map<String, Object?> toJson()

Structured status for CLI and application reports.

Implementation

Map<String, Object?> toJson() => {
  'id': id,
  'checksum': checksum,
  'step': step,
  'state': state.name,
  'phase': phase,
  if (failure != null) 'failure': failure,
  if (backfill != null) 'backfill': backfill!.toJson(),
};