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