toPostAccessibleByGroup function
Implementation
PostAccessibleByGroup toPostAccessibleByGroup(int? index) {
switch (index) {
case 0:
return PostAccessibleByGroup.public;
case 1:
return PostAccessibleByGroup.followers;
case 2:
return PostAccessibleByGroup.me;
case 3:
return PostAccessibleByGroup.specificMembers;
}
return PostAccessibleByGroup.unknown;
}