PolicyName.fromJson constructor Null safety

PolicyName.fromJson(
  1. Map _json
)

Implementation

PolicyName.fromJson(core.Map _json)
    : this(
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        region: _json.containsKey('region')
            ? _json['region'] as core.String
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );