toJson method
Converts the instance to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'rewardId': rewardId,
'rewardCode': rewardCode,
'title': title,
'description': description,
'points': points,
'earnedOn': earnedOn,
};
}