Offerwall.fromJson constructor

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

Implementation

Offerwall.fromJson(Map<String, dynamic> json)
    : offeringId = json['offeringId'],
      description = json['description'],
      metadata = json['metadata'] != null
          ? List<Metadata>.from(
              json['metadata'].map((model) => Metadata.fromJson(model)))
          : null,
      products = json['products'] != null
          ? List<Product>.from(
              json['products'].map((model) => Product.fromJson(model)))
          : null,
      defaultOffer = json['defaultOffer'];