class Decidim::DataPortabilitySerializers::DataPortabilityUserGroupSerializer

Public Instance Methods

serialize() click to toggle source

Public: Exports a hash with the serialized data for this user.

# File lib/decidim/data_portability_serializers/data_portability_user_group_serializer.rb, line 10
def serialize
  {
    id: resource.id,
    name: resource.name,
    document_number: resource.document_number,
    phone: resource.phone,
    verified_at: resource.verified_at
  }
end