GoogleCloudRecommenderV1CostProjection.fromJson constructor

GoogleCloudRecommenderV1CostProjection.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1CostProjection.fromJson(core.Map json_)
    : this(
        cost: json_.containsKey('cost')
            ? GoogleTypeMoney.fromJson(
                json_['cost'] as core.Map<core.String, core.dynamic>)
            : null,
        costInLocalCurrency: json_.containsKey('costInLocalCurrency')
            ? GoogleTypeMoney.fromJson(json_['costInLocalCurrency']
                as core.Map<core.String, core.dynamic>)
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
      );