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