fromJson static method

RewardsModel fromJson(
  1. Map data
)

Implementation

static RewardsModel fromJson(Map data) {
  return RewardsModel(
    id: data['id'],
    title: data['title'],
    claimedCount: data['claimed-count'],
    description: data['description'],
    notes: data['notes'],
    claim: data['claim'],
    readableDate: data['readable-date'],
    rewardType: data['reward-type'],
  );
}