toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (architecture != null) 'architecture': architecture!,
      if (hostname != null) 'hostname': hostname!,
      if (kernelRelease != null) 'kernelRelease': kernelRelease!,
      if (kernelVersion != null) 'kernelVersion': kernelVersion!,
      if (longName != null) 'longName': longName!,
      if (osconfigAgentVersion != null)
        'osconfigAgentVersion': osconfigAgentVersion!,
      if (shortName != null) 'shortName': shortName!,
      if (version != null) 'version': version!,
    };