encode method
Implementation
Map<String, Object?> encode() => {
if (displayName != null) 'display_name': displayName!.toTfJson(),
if (frozen != null) 'frozen': frozen!.toTfJson(),
if (promptText != null) 'prompt_text': promptText!.toTfJson(),
};