Package.fromJson constructor

Package.fromJson(
  1. Map _json
)

Implementation

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