fromString method
Implementation
Role? fromString(String val) {
final override = {
'm.role.admin': Role.mRoleAdmin,
'm.role.security': Role.mRoleSecurity,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}