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');
}