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(),
        effectivePrice: json_.containsKey('effectivePrice')
            ? GoogleTypeMoney.fromJson(json_['effectivePrice']
                as core.Map<core.String, core.dynamic>)
            : null,
        externalPriceUri: json_['externalPriceUri'] as core.String?,
      );