toMemberType method
Implementation
MemberType toMemberType() {
switch (this) {
case 'User':
return MemberType.user;
case 'Bot':
return MemberType.bot;
case 'Webhook':
return MemberType.webhook;
}
throw Exception('$this is not known in enum MemberType');
}