getAppLicense method
Returns the current application license and add-on licenses.
Implementation
@override
Future<StoreAppLicense> getAppLicense() async {
final result = await methodChannel.invokeMethod<dynamic>('getAppLicense');
if (result == null) {
throw const FormatException(
'Microsoft Store returned an empty app license payload.',
);
}
final dynamic decoded = result is String ? jsonDecode(result) : result;
return StoreAppLicense.fromJson(asStringKeyedMap(decoded));
}