$OsInfo.fromJson constructor

$OsInfo.fromJson(
  1. Map json_
)

Implementation

$OsInfo.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        hostname: json_.containsKey('hostname')
            ? json_['hostname'] as core.String
            : null,
        kernelRelease: json_.containsKey('kernelRelease')
            ? json_['kernelRelease'] as core.String
            : null,
        kernelVersion: json_.containsKey('kernelVersion')
            ? json_['kernelVersion'] as core.String
            : null,
        longName: json_.containsKey('longName')
            ? json_['longName'] as core.String
            : null,
        osconfigAgentVersion: json_.containsKey('osconfigAgentVersion')
            ? json_['osconfigAgentVersion'] as core.String
            : null,
        shortName: json_.containsKey('shortName')
            ? json_['shortName'] as core.String
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );