AnalyzePackagesRequest.fromJson constructor

AnalyzePackagesRequest.fromJson(
  1. Map _json
)

Implementation

AnalyzePackagesRequest.fromJson(core.Map _json)
    : this(
        packages: _json.containsKey('packages')
            ? (_json['packages'] as core.List)
                .map((value) => PackageData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceUri: _json.containsKey('resourceUri')
            ? _json['resourceUri'] as core.String
            : null,
      );