encode method

Map<String, Object?> encode()

Implementation

Map<String, Object?> encode() => {
  if (condition != null) 'condition': condition!.toTfJson(),
  if (value != null) 'value': value!.toTfJson(),
};