toXml method
void
toXml(
- XmlBuilder builder
Converts the PaymentMeans object into an XML structure.
This method generates XML elements for the payment means, including:
cbc:PaymentMeansCode: The code for the payment means.cbc:InstructionNote: A note explaining the payment method (if applicable).
Implementation
void toXml(XmlBuilder builder) {
builder.element('cac:PaymentMeans', nest: () {
builder.element('cbc:PaymentMeansCode',
nest: _paymentMeansCodeValues[code]);
builder.element('cbc:InstructionNote', nest: instructionNote);
});
}