```ruby
class Pending::IdentitySerializer < Pending::BaseSerializer
  def identity_type
    object.identity_type
  end

  def avatar_kind
    'uploaded'
  end

  def avatar_url
    object.logo
  end
end
```

Use initials if logo is not present
user
```ruby
class Pending::IdentitySerializer < Pending::BaseSerializer
  def identity_type
    object.identity_type
  end

  def avatar_kind
    if object.logo.present?
      'uploaded'
    else
      'initials'
    end
  end

  def avatar_url
    object.logo
  end
end
```
assistant