GoogleCloudChannelV1Price.fromJson constructor

GoogleCloudChannelV1Price.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1Price.fromJson(core.Map json_)
  : this(
      basePrice: json_.containsKey('basePrice')
          ? GoogleTypeMoney.fromJson(
              json_['basePrice'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      discount: (json_['discount'] as core.num?)?.toDouble(),
      discountComponents: (json_['discountComponents'] as core.List?)
          ?.map(
            (value) => GoogleCloudChannelV1DiscountComponent.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      effectivePrice: json_.containsKey('effectivePrice')
          ? GoogleTypeMoney.fromJson(
              json_['effectivePrice'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      externalPriceUri: json_['externalPriceUri'] as core.String?,
      pricePeriod: json_.containsKey('pricePeriod')
          ? GoogleCloudChannelV1Period.fromJson(
              json_['pricePeriod'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );