GoogleCloudRetailV2ProductDetail.fromJson constructor

GoogleCloudRetailV2ProductDetail.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2ProductDetail.fromJson(core.Map json_)
    : this(
        product: json_.containsKey('product')
            ? GoogleCloudRetailV2Product.fromJson(
                json_['product'] as core.Map<core.String, core.dynamic>)
            : null,
        quantity: json_.containsKey('quantity')
            ? json_['quantity'] as core.int
            : null,
      );