$Country.fromJson constructor Null safety

$Country.fromJson(
  1. Map _json
)

Implementation

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