OperatingSystem.fromJson constructor

OperatingSystem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OperatingSystem.fromJson(Map<String, dynamic> json) {
  return OperatingSystem(
    configurationManagers: (json['ConfigurationManagers'] as List?)
        ?.whereNotNull()
        .map((e) => OperatingSystemConfigurationManager.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    reportedName: json['ReportedName'] as String?,
    reportedVersion: json['ReportedVersion'] as String?,
    supported: json['Supported'] as bool?,
    type: json['Type'] as String?,
  );
}