Map save()

Source

Map save() {
  verify();

  var map = new Map<String, dynamic>.from(_json != null ? _json : {});
  map["name"] = name;
  map["version"] = version;
  map["description"] = description;
  map["main"] = main;
  map["engines"] = engines;
  map["configs"] = configs;
  map["getDependencies"] = getDependencies;
  for (var key in map.keys.toList()) {
    if (map[key] == null) {
      map.remove(key);
    }
  }
  return map;
}