SearchResponse.fromJson constructor

SearchResponse.fromJson(
  1. Map json_
)

Implementation

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