actionTypeToJson function

String actionTypeToJson(
  1. ChatwootActionType actionType
)

Implementation

String actionTypeToJson(ChatwootActionType actionType) {
  switch (actionType) {
    case ChatwootActionType.update_presence:
      return "update_presence";
    case ChatwootActionType.subscribe:
      return "subscribe";
  }
}