toMap method
Serializes the result into a persistence-friendly map.
Implementation
Map<String, dynamic> toMap() => {
'providerId': providerId,
'model': model,
'content': content,
'usage': usage.toMap(),
'raw': raw,
};