GoogleCloudRecommenderV1SustainabilityProjection.fromJson constructor

GoogleCloudRecommenderV1SustainabilityProjection.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1SustainabilityProjection.fromJson(core.Map json_)
    : this(
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        kgCO2e: json_.containsKey('kgCO2e')
            ? (json_['kgCO2e'] as core.num).toDouble()
            : null,
      );