updateApplicationSettings method
Future<ApplicationSettings>
updateApplicationSettings(
- String sdkId,
- ApplicationSettings applicationSettings
Implementation
Future<ApplicationSettings> updateApplicationSettings(String sdkId, ApplicationSettings applicationSettings) async {
final res = await _methodChannel.invokeMethod<String>(
'ApplicationSettingsApi.updateApplicationSettings',
{
"sdkId": sdkId,
"applicationSettings": jsonEncode(ApplicationSettings.encode(applicationSettings)),
}
);
if (res == null) throw AssertionError("received null result from platform method updateApplicationSettings");
final parsedResJson = jsonDecode(res);
return ApplicationSettings.fromJSON(parsedResJson);
}