GoogleCloudChannelV1RepricingConfig.fromJson constructor

GoogleCloudChannelV1RepricingConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1RepricingConfig.fromJson(core.Map json_)
  : this(
      adjustment: json_.containsKey('adjustment')
          ? GoogleCloudChannelV1RepricingAdjustment.fromJson(
              json_['adjustment'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      channelPartnerGranularity:
          json_.containsKey('channelPartnerGranularity')
          ? GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity.fromJson(
              json_['channelPartnerGranularity']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      conditionalOverrides: (json_['conditionalOverrides'] as core.List?)
          ?.map(
            (value) => GoogleCloudChannelV1ConditionalOverride.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      effectiveInvoiceMonth: json_.containsKey('effectiveInvoiceMonth')
          ? GoogleTypeDate.fromJson(
              json_['effectiveInvoiceMonth']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      entitlementGranularity: json_.containsKey('entitlementGranularity')
          ? GoogleCloudChannelV1RepricingConfigEntitlementGranularity.fromJson(
              json_['entitlementGranularity']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      rebillingBasis: json_['rebillingBasis'] as core.String?,
    );