ListReposResponse.fromJson constructor Null safety

ListReposResponse.fromJson(
  1. Map _json
)

Implementation

ListReposResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        repos: _json.containsKey('repos')
            ? (_json['repos'] as core.List)
                .map((value) => Repo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );