toMemberProfileAccessibleByGroup function

MemberProfileAccessibleByGroup toMemberProfileAccessibleByGroup(
  1. int? index
)

Implementation

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