GoogleCloudChannelV1DiscountComponent.fromJson constructor

GoogleCloudChannelV1DiscountComponent.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1DiscountComponent.fromJson(core.Map json_)
  : this(
      discountAbsolute:
          json_.containsKey('discountAbsolute')
              ? GoogleTypeMoney.fromJson(
                json_['discountAbsolute']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      discountPercentage:
          (json_['discountPercentage'] as core.num?)?.toDouble(),
      discountType: json_['discountType'] as core.String?,
    );