@override Map<String, Object?> toMap() { return { 'values': values, if (total != null) 'total': total, if (hasMore != null) 'hasMore': hasMore, }; }