AvailableReward.fromJson constructor
Factory constructor to create an instance from JSON.
Implementation
factory AvailableReward.fromJson(Map<String, dynamic> json) {
return AvailableReward(
id: json['id'] as int?,
rewardCode: json['rewardCode'] as String?,
title: json['title'] as String?,
description: json['description'] as String?,
points: json['points'] as int?,
);
}