class Api::V1::ContactSerializer < ActiveModel::Serializer
  attributes :id, :first_name, :last_name, :mobile, :phone, :email, :title
  attribute :picture do
    {
      thumb: object.image_url(:thumb),
      small: object.image_url(:small),
      medium: object.image_url(:medium)
    }
  end

  attribute :is_billing_contact do
    object.is_billing_person?
  end

end
