Converts the current pagination state to a JSON format.
Map<String, dynamic> toJson() => configuration.toJson(page, take);