v1CredentialTypeToJson function
Implementation
dynamic v1CredentialTypeToJson(v1CredentialType value) {
switch (value) {
case v1CredentialType.credential_type_webauthn_authenticator: return "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR";
case v1CredentialType.credential_type_api_key_p256: return "CREDENTIAL_TYPE_API_KEY_P256";
case v1CredentialType.credential_type_recover_user_key_p256: return "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256";
case v1CredentialType.credential_type_api_key_secp256k1: return "CREDENTIAL_TYPE_API_KEY_SECP256K1";
case v1CredentialType.credential_type_email_auth_key_p256: return "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256";
case v1CredentialType.credential_type_api_key_ed25519: return "CREDENTIAL_TYPE_API_KEY_ED25519";
case v1CredentialType.credential_type_otp_auth_key_p256: return "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256";
case v1CredentialType.credential_type_read_write_session_key_p256: return "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256";
case v1CredentialType.credential_type_oauth_key_p256: return "CREDENTIAL_TYPE_OAUTH_KEY_P256";
case v1CredentialType.credential_type_login: return "CREDENTIAL_TYPE_LOGIN";
}
}