licenseToApiKey static method
Implementation
static String? licenseToApiKey(String licenseToken) {
try {
List<String> license = licenseToken.split(":")[1].split(".");
String apiKey = hex.encoder
.convert(base64.decode(license[0]))
.toLowerCase()
.padRight(32, "0");
return apiKey.toUpperCase();
} catch (e) {
return null;
}
}