Offer.fromJson constructor

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

Implementation

factory Offer.fromJson(Map<String, dynamic> json) {
  return Offer(
      0, json['category'], json['title'], json['description'], json['code']);
}