toJson method
Encodes this CockpitTestCondition as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'type': kind.name,
if (locator != null) 'locator': locator!.toJson(),
if (expected != null) 'expected': expected,
if (text != null) 'text': text,
if (matchMode != null) 'matchMode': matchMode!.name,
if (route != null) 'route': route,
if (quietMs != null) 'quietMs': quietMs,
};