SourceResultCount.fromJson constructor

SourceResultCount.fromJson(
  1. Map json_
)

Implementation

SourceResultCount.fromJson(core.Map json_)
    : this(
        hasMoreResults: json_.containsKey('hasMoreResults')
            ? json_['hasMoreResults'] as core.bool
            : null,
        resultCountEstimate: json_.containsKey('resultCountEstimate')
            ? json_['resultCountEstimate'] as core.String
            : null,
        resultCountExact: json_.containsKey('resultCountExact')
            ? json_['resultCountExact'] as core.String
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );