toMap method
Converts this CompleteResultCompletion into a JSON-compatible map.
Implementation
@override
Map<String, Object?> toMap() {
return {
'values': values,
if (total != null) 'total': total,
if (hasMore != null) 'hasMore': hasMore,
};
}