toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'identifier': identifier,
if (container != null) 'container': container!,
if (direction != null) 'direction': direction!.toJson(),
if (maxSteps != null) 'maxSteps': maxSteps!,
if (timeoutMs != null) 'timeoutMs': timeoutMs!,
};