fromJson static method
Implementation
static RewardDetailModel fromJson(Map data) {
return RewardDetailModel(
data: RewardsModel.fromJson(data['data']),
suggestions: <RewardsModel>[
...data['suggestion'].map((e) {
return RewardsModel.fromJson(e);
})
],
);
}