createApplicationSettings method

Future<ApplicationSettings> createApplicationSettings(
  1. String sdkId,
  2. ApplicationSettings applicationSettings
)

Implementation

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