GoogleCloudRetailV2PurchaseTransaction.fromJson constructor

GoogleCloudRetailV2PurchaseTransaction.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2PurchaseTransaction.fromJson(core.Map json_)
    : this(
        cost: json_.containsKey('cost')
            ? (json_['cost'] 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,
        tax: json_.containsKey('tax')
            ? (json_['tax'] as core.num).toDouble()
            : null,
      );