toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"key": key,
"value": value,
"resourceType": resourceType,
"resourceId": resourceId,
};
}