actionTypeToJson function

String actionTypeToJson(
  1. DOOActionType actionType
)

Implementation

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