toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'condition': condition.toJson(),
  'timeoutMs': timeoutMs,
  if (semanticsIdentifier != null)
    'semanticsIdentifier': semanticsIdentifier!,
  if (value != null) 'value': value!,
  if (destinationId != null) 'destinationId': destinationId!,
  if (revision != null) 'revision': revision!,
};