UploadedNpmPackage.fromJson constructor

UploadedNpmPackage.fromJson(
  1. Map json_
)

Implementation

UploadedNpmPackage.fromJson(core.Map json_)
    : this(
        fileHashes: json_.containsKey('fileHashes')
            ? FileHashes.fromJson(
                json_['fileHashes'] as core.Map<core.String, core.dynamic>)
            : null,
        pushTiming: json_.containsKey('pushTiming')
            ? TimeSpan.fromJson(
                json_['pushTiming'] as core.Map<core.String, core.dynamic>)
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );