AnalyzePackagesRequestV1.fromJson constructor

AnalyzePackagesRequestV1.fromJson(
  1. Map json_
)

Implementation

AnalyzePackagesRequestV1.fromJson(core.Map json_)
    : this(
        includeOsvData: json_.containsKey('includeOsvData')
            ? json_['includeOsvData'] as core.bool
            : null,
        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,
      );