encode method

Map<String, Object?> encode()

Implementation

Map<String, Object?> encode() => {
  if (contains != null) 'contains': contains!.toTfJson(),
  if (exact != null) 'exact': exact!.toTfJson(),
  if (ignoreCase != null) 'ignore_case': ignoreCase!.toTfJson(),
  if (prefix != null) 'prefix': prefix!.toTfJson(),
  if (suffix != null) 'suffix': suffix!.toTfJson(),
};