ProductSearchResults.fromJson constructor

ProductSearchResults.fromJson(
  1. Map json_
)

Implementation

ProductSearchResults.fromJson(core.Map json_)
    : this(
        indexTime: json_.containsKey('indexTime')
            ? json_['indexTime'] as core.String
            : null,
        productGroupedResults: json_.containsKey('productGroupedResults')
            ? (json_['productGroupedResults'] as core.List)
                .map((value) => GroupedResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        results: json_.containsKey('results')
            ? (json_['results'] as core.List)
                .map((value) => Result.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );