PackageVersion.fromJson constructor

PackageVersion.fromJson(
  1. Map json_
)

Implementation

PackageVersion.fromJson(core.Map json_)
    : this(
        licenses: json_.containsKey('licenses')
            ? (json_['licenses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );