$Browser.fromJson constructor Null safety

$Browser.fromJson(
  1. Map _json
)

Implementation

$Browser.fromJson(core.Map _json)
    : this(
        browserVersionId: _json.containsKey('browserVersionId')
            ? _json['browserVersionId'] as core.String
            : null,
        dartId: _json.containsKey('dartId')
            ? _json['dartId'] 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,
      );