toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"appId": appId,
"type": type,
"title": title,
"summary": summary,
"targetType": targetType,
"target": target,
"categories": categories,
"insights": insights.map((p) => p.toMap()).toList(),
"analyzedAt": analyzedAt,
};
}