toChatAccessibleByGroup function
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;
}