ListPackagesResponse.fromJson constructor

ListPackagesResponse.fromJson(
  1. Map json_
)

Implementation

ListPackagesResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        packages: json_.containsKey('packages')
            ? (json_['packages'] as core.List)
                .map((value) => Package.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );