CartData.fromJson constructor

CartData.fromJson(
  1. Map json_
)

Implementation

CartData.fromJson(core.Map json_)
  : this(
      items: (json_['items'] as core.List?)
          ?.map(
            (value) =>
                Item.fromJson(value as core.Map<core.String, core.dynamic>),
          )
          .toList(),
      merchantFeedLabel: json_['merchantFeedLabel'] as core.String?,
      merchantFeedLanguageCode:
          json_['merchantFeedLanguageCode'] as core.String?,
      merchantId: json_['merchantId'] as core.String?,
      transactionDiscount: (json_['transactionDiscount'] as core.num?)
          ?.toDouble(),
    );