PackageOccurrence.fromJson constructor

PackageOccurrence.fromJson(
  1. Map _json
)

Implementation

PackageOccurrence.fromJson(core.Map _json)
    : this(
        location: _json.containsKey('location')
            ? (_json['location'] as core.List)
                .map((value) => Location.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );