Module.fromJson constructor

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

Implementation

Module.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;
  integration = json['integration'] != null
      ? Integration.fromJson(json['integration'])
      : null;
  order = json['order'] != null ? Campaign.fromJson(json['order']) : null;
  product =
      json['product'] != null ? Product.fromJson(json['product']) : null;
  stock = json['stock'] != null ? Stock.fromJson(json['stock']) : null;
  subStore =
      json['subStore'] != null ? Campaign.fromJson(json['subStore']) : null;
}