ProductDeliveryTime.fromJson constructor

ProductDeliveryTime.fromJson(
  1. Map json_
)

Implementation

ProductDeliveryTime.fromJson(core.Map json_)
    : this(
        areaDeliveryTimes: json_.containsKey('areaDeliveryTimes')
            ? (json_['areaDeliveryTimes'] as core.List)
                .map((value) => ProductDeliveryTimeAreaDeliveryTime.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        productId: json_.containsKey('productId')
            ? ProductId.fromJson(
                json_['productId'] as core.Map<core.String, core.dynamic>)
            : null,
      );