GoogleCloudChannelV1PricePhase.fromJson constructor

GoogleCloudChannelV1PricePhase.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1PricePhase.fromJson(core.Map json_)
  : this(
      firstPeriod: json_['firstPeriod'] as core.int?,
      lastPeriod: json_['lastPeriod'] as core.int?,
      periodType: json_['periodType'] as core.String?,
      price: json_.containsKey('price')
          ? GoogleCloudChannelV1Price.fromJson(
              json_['price'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      priceTiers: (json_['priceTiers'] as core.List?)
          ?.map(
            (value) => GoogleCloudChannelV1PriceTier.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );