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