public function transform($role)
    {
        $role = $this->entityToArray(Role::class, $role);
        return [
            'id'        => (int) $role['id'],
            'name'      => $role['name'],
            'createdAt' => $role['created_at'],
            'updatedAt' => $role['updated_at']
        ];
    }