PageInfo.fromJson constructor

PageInfo.fromJson(
  1. Map json_
)

Implementation

PageInfo.fromJson(core.Map json_)
    : this(
        resultsPerPage: json_.containsKey('resultsPerPage')
            ? json_['resultsPerPage'] as core.int
            : null,
        totalResults: json_.containsKey('totalResults')
            ? json_['totalResults'] as core.int
            : null,
      );