VmwareVersionInfo.fromJson constructor

VmwareVersionInfo.fromJson(
  1. Map json_
)

Implementation

VmwareVersionInfo.fromJson(core.Map json_)
    : this(
        dependencies: json_.containsKey('dependencies')
            ? (json_['dependencies'] as core.List)
                .map((value) => UpgradeDependency.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        hasDependencies: json_.containsKey('hasDependencies')
            ? json_['hasDependencies'] as core.bool
            : null,
        isInstalled: json_.containsKey('isInstalled')
            ? json_['isInstalled'] as core.bool
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );