toJson method

Json toJson()

The JSON form.

Implementation

Json toJson() => {
  'id': id,
  'operation': operation,
  'method': method,
  'args': args,
  'at': at,
  'duration': duration,
  'attempts': attempts,
  'limit': limit,
  'status': status,
  'outcome': outcome.name,
  'retries': [for (final retry in retries) retry.toJson()],
  'refreshes': refreshes,
  'joined': joined,
  'authMs': authMs,
  'marker': marker,
};