Converts the pagination to JSON
Map<String, dynamic> toJson() => <String, dynamic>{ 'total_count': totalCount, 'count': count, 'offset': offset };