Setting.fromJson constructor

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

Implementation

Setting.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  createdAt = json['createdAt'];
  campaign =
      json['campaign'] != null ? Campaign.fromJson(json['campaign']) : null;
  customer =
      json['customer'] != null ? Customer.fromJson(json['customer']) : null;
  email = json['email'] != null ? Email.fromJson(json['email']) : null;
  order = json['order'] != null ? Campaign.fromJson(json['order']) : null;
  product =
      json['product'] != null ? Product.fromJson(json['product']) : null;
  sms = json['sms'] != null ? Sms.fromJson(json['sms']) : null;
  currency =
      json['currency'] != null ? Currency.fromJson(json['currency']) : null;
  analytic = json['analytic'];
}