toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'outcome': outcome,
'source': source.toJson(),
'identifier': identifier,
'steps': steps,
'elapsedMs': elapsedMs,
'containers': containers
.map((item) => item.toJson())
.toList(growable: false),
if (nodeId != null) 'nodeId': nodeId!,
if (generation != null) 'generation': generation!,
if (reachability != null) 'reachability': reachability!.toJson(),
'beforeTreeRevision': beforeTreeRevision,
'afterTreeRevision': afterTreeRevision,
if (reason != null) 'reason': reason!,
if (failureType != null) 'failureType': failureType!,
if (gateId != null) 'gateId': gateId!,
if (gateCode != null) 'gateCode': gateCode!,
};