Package.fromJson constructor

Package.fromJson(
  1. Map _json
)

Implementation

Package.fromJson(core.Map _json)
    : this(
        location: _json.containsKey('location')
            ? _json['location'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );