GetRatePlanResult.fromMap constructor
GetRatePlanResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetRatePlanResult.fromMap(Map<String, dynamic> map) {
return GetRatePlanResult(
apiproduct: map['apiproduct'] as String,
billingPeriod: map['billingPeriod'] as String,
consumptionPricingRates: pulumi.Input.decodeList<GoogleCloudApigeeV1RateRangeResponse>(map['consumptionPricingRates']!, (value) => GoogleCloudApigeeV1RateRangeResponse.fromMap((value as Map).cast<String, dynamic>())),
consumptionPricingType: map['consumptionPricingType'] as String,
createdAt: map['createdAt'] as String,
currencyCode: map['currencyCode'] as String,
description: map['description'] as String,
displayName: map['displayName'] as String,
endTime: map['endTime'] as String,
fixedFeeFrequency: map['fixedFeeFrequency'] as int,
fixedRecurringFee: GoogleTypeMoneyResponse.fromMap((map['fixedRecurringFee']! as Map).cast<String, dynamic>()),
lastModifiedAt: map['lastModifiedAt'] as String,
name: map['name'] as String,
paymentFundingModel: map['paymentFundingModel'] as String,
revenueShareRates: pulumi.Input.decodeList<GoogleCloudApigeeV1RevenueShareRangeResponse>(map['revenueShareRates']!, (value) => GoogleCloudApigeeV1RevenueShareRangeResponse.fromMap((value as Map).cast<String, dynamic>())),
revenueShareType: map['revenueShareType'] as String,
setupFee: GoogleTypeMoneyResponse.fromMap((map['setupFee']! as Map).cast<String, dynamic>()),
startTime: map['startTime'] as String,
state: map['state'] as String,
);
}