getEnvironment method
Returns the current server environment.
Note: Only supported on iOS.
Implementation
Future<IaSdkConfigurationServerEnvironment?> getEnvironment() async {
final result = await _Methods.getEnvironment.invoke<String?>();
if (result == null) return null;
return IaSdkConfigurationServerEnvironment.values.where((e) => e.name == result).firstOrNull;
}