toJson method

Map<String, dynamic> toJson()

JSON view used by snapshots and logs.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'run_id': runId,
  'issue_id': issueId,
  'issue_identifier': issueIdentifier,
  'attempt': attempt,
  'phase': phase.name,
  'workspace_path': workspacePath,
  'started_at': startedAt.toIso8601String(),
  if (error != null) 'error': error,
};