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.
Function to be used in deserialization
Function to be used in serialization
See Implementation
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.