$PageInfo.fromJson constructor Null safety

$PageInfo.fromJson(
  1. Map _json
)

Implementation

$PageInfo.fromJson(core.Map _json)
    : this(
        resultPerPage: _json.containsKey('resultPerPage')
            ? _json['resultPerPage'] as core.int
            : null,
        startIndex: _json.containsKey('startIndex')
            ? _json['startIndex'] as core.int
            : null,
        totalResults: _json.containsKey('totalResults')
            ? _json['totalResults'] as core.int
            : null,
      );