GuestOsDetails.fromJson constructor

GuestOsDetails.fromJson(
  1. Map json_
)

Implementation

GuestOsDetails.fromJson(core.Map json_)
    : this(
        config: json_.containsKey('config')
            ? GuestConfigDetails.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        family: json_.containsKey('family')
            ? json_['family'] as core.String
            : null,
        osName: json_.containsKey('osName')
            ? json_['osName'] as core.String
            : null,
        runtime: json_.containsKey('runtime')
            ? GuestRuntimeDetails.fromJson(
                json_['runtime'] as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );