Map<Object?, Object?> toJson() { return { for (final entry in entries) entry.key: entry.value.toJson(), }; }