OperatingSystemVersion.fromJson constructor

OperatingSystemVersion.fromJson(
  1. Map json_
)

Implementation

OperatingSystemVersion.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        majorVersion: json_.containsKey('majorVersion')
            ? json_['majorVersion'] as core.String
            : null,
        minorVersion: json_.containsKey('minorVersion')
            ? json_['minorVersion'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operatingSystem: json_.containsKey('operatingSystem')
            ? OperatingSystem.fromJson(json_['operatingSystem']
                as core.Map<core.String, core.dynamic>)
            : null,
      );