GoogleCloudRecommendationengineV1beta1PurchaseTransaction.fromJson constructor

GoogleCloudRecommendationengineV1beta1PurchaseTransaction.fromJson(
  1. Map _json
)

Implementation

GoogleCloudRecommendationengineV1beta1PurchaseTransaction.fromJson(
    core.Map _json)
    : this(
        costs: _json.containsKey('costs')
            ? (_json['costs'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  (item as core.num).toDouble(),
                ),
              )
            : null,
        currencyCode: _json.containsKey('currencyCode')
            ? _json['currencyCode'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        revenue: _json.containsKey('revenue')
            ? (_json['revenue'] as core.num).toDouble()
            : null,
        taxes: _json.containsKey('taxes')
            ? (_json['taxes'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  (item as core.num).toDouble(),
                ),
              )
            : null,
      );