$OperatingSystem.fromJson constructor Null safety

$OperatingSystem.fromJson(
  1. Map _json
)

Implementation

$OperatingSystem.fromJson(core.Map _json)
    : this(
        dartId: _json.containsKey('dartId')
            ? _json['dartId'] as core.String
            : null,
        desktop: _json.containsKey('desktop')
            ? _json['desktop'] as core.bool
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        mobile:
            _json.containsKey('mobile') ? _json['mobile'] as core.bool : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );