fromJson static method

RewardDetailModel fromJson(
  1. Map data
)

Implementation

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