convertGroupType static method

String? convertGroupType(
  1. String type
)

Implementation

static String? convertGroupType(String type) {
  if (type == GRP_WORK) {
    return GroupType.Work;
  }

  if (type == GRP_PUBLIC) {
    return GroupType.Public;
  }

  if (type == GRP_AVCHATROOM) {
    return GroupType.AVChatRoom;
  }

  if (type == GRP_MEETING) {
    return GroupType.Meeting;
  }

  if (type == GRP_COMMUNITY) {
    return GroupType.Community;
  }
  return null;
}