Offer.fromJson constructor

Offer.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Offer.fromJson(Map<String, dynamic> json) => Offer(
      id: json["_id"] == null ? null : json["_id"],
      title: json["title"] == null ? null : json["title"],
      benefits: json["benefits"] == null ? null : json["benefits"],
      iconUrl: json["iconUrl"] == null ? null : json["iconUrl"],
    );