Product.fromJson constructor

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

Implementation

Product.fromJson(Map<String, dynamic> json)
    : productId = json['product_id'],
      sellSummary = (json['sell_summary'] as List)
          .map((e) => BuySellSummary.fromJson(e))
          .toList(),
      buySummary = (json['buy_summary'] as List)
          .map((e) => BuySellSummary.fromJson(e))
          .toList(),
      quickStatus = QuickStatus.fromJson(json['quick_status']);