CustomParser

Use custom parser functions for a given field.

The function names must exist as methods in the struct. Any (de)serializable type may be used for fromFunc's argument and toFunc's return value, but fromFunc's return type and toFunc's argument type must be the same as the field's type.

struct CustomParser {}

Members

Variables

fromFunc
string fromFunc;

Function to be used in deserialization

toFunc
string toFunc;

Function to be used in serialization

Meta