scopeToString function

String scopeToString(
  1. Scope scope
)

Converts a Scope to a string.

Implementation

String scopeToString(Scope scope) {
  switch (scope) {
    case Scope.userProfile:
      return 'user_profile';
    case Scope.userTerritory:
      return 'user_territory';
    case Scope.userAccountStatus:
      return 'user_account_status';
  }
  return null;
}