DeliveryControl.fromJson constructor

DeliveryControl.fromJson(
  1. Map json_
)

Implementation

DeliveryControl.fromJson(core.Map json_)
    : this(
        companionDeliveryType: json_.containsKey('companionDeliveryType')
            ? json_['companionDeliveryType'] as core.String
            : null,
        creativeRotationType: json_.containsKey('creativeRotationType')
            ? json_['creativeRotationType'] as core.String
            : null,
        deliveryRateType: json_.containsKey('deliveryRateType')
            ? json_['deliveryRateType'] as core.String
            : null,
        frequencyCap: json_.containsKey('frequencyCap')
            ? (json_['frequencyCap'] as core.List)
                .map((value) => FrequencyCap.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        roadblockingType: json_.containsKey('roadblockingType')
            ? json_['roadblockingType'] as core.String
            : null,
      );