Whats the best way to set K2node Pin default values?

currently i’m doing this

FString DefaultValue;
	FMyStruct::StaticStruct()->ExportText(
		DefaultValue,
		&NodeValue,
		nullptr,
		nullptr,
		PPF_None,
		nullptr);
Schema->SetPinAutogeneratedDefaultValue(Pin, DefaultValue);

which feels very fragile especially on structs/maps etc