toJson method
Implementation
Map<String, dynamic> toJson() => {
"userId": userId,
"taskId": taskId,
"event": event,
"quantity": quantity,
"rewardId": rewardId,
"rewardName": rewardName,
"rewardType": rewardType,
"rewardValue": rewardValue,
"properties": properties?.toJson(),
};