toChatAccessibleByGroup function

ChatAccessibleByGroup toChatAccessibleByGroup(
  1. int? index
)

Implementation

ChatAccessibleByGroup toChatAccessibleByGroup(int? index) {
  switch (index) {
    case 0:
      return ChatAccessibleByGroup.public;
    case 1:
      return ChatAccessibleByGroup.followers;
    case 2:
      return ChatAccessibleByGroup.me;
    case 3:
      return ChatAccessibleByGroup.specificMembers;
  }
  return ChatAccessibleByGroup.unknown;
}