CartData.fromJson constructor

CartData.fromJson(
  1. Map json_
)

Implementation

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