GetProductResponse.fromJson constructor

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

Implementation

GetProductResponse.fromJson(Map<String, dynamic> json) {
  accountId = json['accountId'];
  if (json['products'] != null) {
    products = new List<Products>();
    json['products'].forEach((v) {
      products.add(new Products.fromJson(v));
    });
  }
  status = json['status'];
}