GoogleCloudBillingBudgetsV1ThresholdRule.fromJson constructor Null safety

GoogleCloudBillingBudgetsV1ThresholdRule.fromJson(
  1. Map _json
)

Implementation

GoogleCloudBillingBudgetsV1ThresholdRule.fromJson(core.Map _json)
    : this(
        spendBasis: _json.containsKey('spendBasis')
            ? _json['spendBasis'] as core.String
            : null,
        thresholdPercent: _json.containsKey('thresholdPercent')
            ? (_json['thresholdPercent'] as core.num).toDouble()
            : null,
      );