$OsConstraint.fromJson constructor Null safety

$OsConstraint.fromJson(
  1. Map _json
)

Implementation

$OsConstraint.fromJson(core.Map _json)
    : this(
        minimumVersion: _json.containsKey('minimumVersion')
            ? _json['minimumVersion'] as core.String
            : null,
        osType: _json.containsKey('osType')
            ? _json['osType'] as core.String
            : null,
        requireVerifiedChromeOs: _json.containsKey('requireVerifiedChromeOs')
            ? _json['requireVerifiedChromeOs'] as core.bool
            : null,
      );