toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'outcome': outcome,
  'condition': condition.toJson(),
  'timeoutMs': timeoutMs,
  'elapsedMs': elapsedMs,
  'pollIntervalMs': pollIntervalMs,
  'polls': polls,
};