parse

fun parse(languageCode: String): Currency

Parses the given language code and returns the corresponding Currency enum constant. If the code does not match any currency, USD is returned as the default.

Return

The matching Currency enum constant or USD if no match is found.

Parameters

languageCode

A string representing the currency code (e.g., "JPY", "USD").