tnc1997 / dart-xml-serializable

Generates utilities to aid in serializing to/from XML.

Home Page:https://pub.dev/packages/xml_serializable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: Add support for XML base64Binary type

Matej-Hlatky opened this issue · comments

Is your feature request related to a problem? Please describe.

To be able to map XML type "base64Binary", to Dart Uint8List and vice-versa.

Describe the solution you'd like
Support "base64Binary" to be mapped to / from Uint8List.

Describe alternatives you've considered
Working with plain strings and mapping to Dart type when needed.

Hi @Matej-Hlatky, thank you for your feature request, I will investigate it over the weekend. In the meantime, I do have a question for you, how might you see base64Binary interacting with hexBinary given that both could map to Uint8List?

Or even better, support for custom XmlConverter (similar to JsonConverter from json_serializable).

I am in favour of adding support for custom converters similar to the JsonConverter class (#49).