toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"name": name,
"description": description,
"teamId": teamId,
"projectId": projectId,
"resourceType": resourceType,
"resourceId": resourceId,
"action": action.value,
"priority": priority,
"enabled": enabled,
"conditions": conditions,
"config": config,
"limit": limit,
"interval": interval,
"key": key,
"strategy": strategy,
"maxBucketSize": maxBucketSize,
};
}