GoogleCloudApigeeV1RatePlan.fromJson constructor

GoogleCloudApigeeV1RatePlan.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1RatePlan.fromJson(core.Map json_)
    : this(
        apiproduct: json_.containsKey('apiproduct')
            ? json_['apiproduct'] as core.String
            : null,
        billingPeriod: json_.containsKey('billingPeriod')
            ? json_['billingPeriod'] as core.String
            : null,
        consumptionPricingRates: json_.containsKey('consumptionPricingRates')
            ? (json_['consumptionPricingRates'] as core.List)
                .map((value) => GoogleCloudApigeeV1RateRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        consumptionPricingType: json_.containsKey('consumptionPricingType')
            ? json_['consumptionPricingType'] as core.String
            : null,
        createdAt: json_.containsKey('createdAt')
            ? json_['createdAt'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        fixedFeeFrequency: json_.containsKey('fixedFeeFrequency')
            ? json_['fixedFeeFrequency'] as core.int
            : null,
        fixedRecurringFee: json_.containsKey('fixedRecurringFee')
            ? GoogleTypeMoney.fromJson(json_['fixedRecurringFee']
                as core.Map<core.String, core.dynamic>)
            : null,
        lastModifiedAt: json_.containsKey('lastModifiedAt')
            ? json_['lastModifiedAt'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        paymentFundingModel: json_.containsKey('paymentFundingModel')
            ? json_['paymentFundingModel'] as core.String
            : null,
        revenueShareRates: json_.containsKey('revenueShareRates')
            ? (json_['revenueShareRates'] as core.List)
                .map((value) => GoogleCloudApigeeV1RevenueShareRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        revenueShareType: json_.containsKey('revenueShareType')
            ? json_['revenueShareType'] as core.String
            : null,
        setupFee: json_.containsKey('setupFee')
            ? GoogleTypeMoney.fromJson(
                json_['setupFee'] as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );