ProductSearchParams.fromJson constructor

ProductSearchParams.fromJson(
  1. Map json_
)

Implementation

ProductSearchParams.fromJson(core.Map json_)
    : this(
        boundingPoly: json_.containsKey('boundingPoly')
            ? BoundingPoly.fromJson(
                json_['boundingPoly'] as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        productCategories: json_.containsKey('productCategories')
            ? (json_['productCategories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        productSet: json_.containsKey('productSet')
            ? json_['productSet'] as core.String
            : null,
      );