$PostalCode.fromJson constructor Null safety

$PostalCode.fromJson(
  1. Map _json
)

Implementation

$PostalCode.fromJson(core.Map _json)
    : this(
        code: _json.containsKey('code') ? _json['code'] as core.String : null,
        countryCode: _json.containsKey('countryCode')
            ? _json['countryCode'] as core.String
            : null,
        countryDartId: _json.containsKey('countryDartId')
            ? _json['countryDartId'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
      );