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