toChatMemberInfoAccessibleByGroup function

ChatMemberInfoAccessibleByGroup toChatMemberInfoAccessibleByGroup(
  1. int? index
)

Implementation

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