$Hash.fromJson constructor Null safety

$Hash.fromJson(
  1. Map _json
)

Implementation

$Hash.fromJson(core.Map _json)
    : this(
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
        value:
            _json.containsKey('value') ? _json['value'] as core.String : null,
      );