Distribution.fromJson constructor

Distribution.fromJson(
  1. Map json_
)

Implementation

Distribution.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        cpeUri: json_.containsKey('cpeUri')
            ? json_['cpeUri'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        latestVersion: json_.containsKey('latestVersion')
            ? Version.fromJson(
                json_['latestVersion'] as core.Map<core.String, core.dynamic>)
            : null,
        maintainer: json_.containsKey('maintainer')
            ? json_['maintainer'] as core.String
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );