PackageModel.fromJson constructor

PackageModel.fromJson(
  1. String data
)

dart:convert

Parses the string and returns the resulting Json object as PackageModel.

Implementation

factory PackageModel.fromJson(String data) {
  return PackageModel.fromMap(json.decode(data) as Map<String, dynamic>);
}