toResourceOwner method

ResourceOwner toResourceOwner()

Implementation

ResourceOwner toResourceOwner() {
  switch (this) {
    case 'SELF':
      return ResourceOwner.self;
    case 'OTHER-ACCOUNTS':
      return ResourceOwner.otherAccounts;
  }
  throw Exception('$this is not known in enum ResourceOwner');
}