ListSitesResponse.fromJson constructor

ListSitesResponse.fromJson(
  1. Map _json
)

Implementation

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