toPermissionType method

PermissionType toPermissionType()

Implementation

PermissionType toPermissionType() {
  switch (this) {
    case 'FULL_ACCESS':
      return PermissionType.fullAccess;
    case 'SEND_AS':
      return PermissionType.sendAs;
    case 'SEND_ON_BEHALF':
      return PermissionType.sendOnBehalf;
  }
  throw Exception('$this is not known in enum PermissionType');
}