Map<String, dynamic> toMap() { return PackageScoreMapper.ensureInitialized() .encodeMap<PackageScore>(this as PackageScore); }