putUserPreferenceTopic method
Future
putUserPreferenceTopic({
- required String topicId,
- required CourierUserPreferencesStatus status,
- required bool hasCustomRouting,
- required List<
CourierUserPreferencesChannel> customRouting,
Implementation
Future putUserPreferenceTopic({required String topicId, required CourierUserPreferencesStatus status, required bool hasCustomRouting, required List<CourierUserPreferencesChannel> customRouting}) async {
await _options.invokeClient('preferences.put_user_preference_topic', {
'topicId': topicId,
'status': status.value,
'hasCustomRouting': hasCustomRouting,
'customRouting': customRouting.map((e) => e.value).toList(),
});
}