toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'path': path,
  if (until != null) 'until': until!.toJson(),
  if (value != null) 'value': _wireJson(value!, r'$.value'),
  if (timeoutMs != null) 'timeoutMs': timeoutMs!,
};