encode method

Map<String, Object?> encode()

Implementation

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