toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"targetId": targetId,
"target": target.toMap(),
"userId": userId,
"userName": userName,
"topicId": topicId,
"providerType": providerType,
};
}