toJson method

Map<String, dynamic> toJson()

Implementation

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