Location.fromJson constructor

Location.fromJson(
  1. Map _json
)

Implementation

Location.fromJson(core.Map _json)
    : this(
        cpeUri: _json.containsKey('cpeUri')
            ? _json['cpeUri'] as core.String
            : null,
        path: _json.containsKey('path') ? _json['path'] as core.String : null,
        version: _json.containsKey('version')
            ? Version.fromJson(
                _json['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );