GoogleCloudRetailV2ListProductsResponse.fromJson constructor

GoogleCloudRetailV2ListProductsResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2ListProductsResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        products: json_.containsKey('products')
            ? (json_['products'] as core.List)
                .map((value) => GoogleCloudRetailV2Product.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );